Search Documentation

WP Travel Developer Documentation

  1. Home
  2. Docs
  3. WP Travel Developer Documentation
  4. Filters Associated With Settings
  5. Filter :wp_travel_settings_values

Filter :wp_travel_settings_values

Main settings value filter.

Source

File: /core/helpers/settings.php
Used by: /core/helpers/settings.php

Parameters
$settings

Example:

function prefix_wp_travel_settings_values( $settings ) {
    $settings[‘custom_data’] = array( ‘data1’, ‘data2’, );
    return $settings;
}
add_filter( 'wp_travel_settings_values', 'prefix_wp_travel_settings_values' );
Was this article helpful to you? Yes No

How can we help?