Search Documentation

WP Travel Developer Documentation

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

Filter :wp_travel_variation_pricing_options

WP Travel pricing variation options like adult, child etc.

Source

File: /inc/helpers.php
Used by: /inc/helpers.php

Parameters
$variation_options

Example:

function prefix_wp_travel_variation_pricing_options() {
    $variation_options[‘organization’] = ‘__( ‘Organization’,
    ‘wp-travel’ )’;
    return $variation_options;
}
add_filter( 'wp_travel_variation_pricing_options', 'prefix_wp_travel_variation_pricing_options' );
Was this article helpful to you? Yes No

How can we help?