Action Hooks Associated With Pricing

Action: wp_travel_pricing_add_new_category_button #

Fire in WP Travel trip admin price section. Currently using to add a new category button.

Source

File: /inc/admin/views/tabs/tabs-contents/itineraries/price.php
Used by: /inc/admin/views/tabs/tabs-contents/itineraries/price.php

Example:

function prefix_wp_travel_pricing_add_new_category_button() {
    esc_html_e( ‘This is content added using this hook’, ‘text-domain’ );
}
add_action( 'wp_travel_pricing_add_new_category_button', 'prefix_wp_travel_pricing_add_new_category_button’ );

Action: wp_travel_pricing_option_content_after_category #

Fire in WP Travel trip admin price section after category.

Source

File: /inc/admin/views/tabs/tabs-contents/itineraries/price.php
Used by: /inc/admin/views/tabs/tabs-contents/itineraries/price.php

Parameter
$post_id, $pricing_id, $category_id, $category

Example:

function prefix_wp_travel_pricing_option_content_after_category( $post_id, $pricing_id, $category_id, $category ) {
    esc_html_e( ‘This is content added using this hook’, ‘text-domain’ );
}
add_action( 'wp_travel_pricing_option_content_after_category', 'prefix_wp_travel_pricing_option_content_after_category’ );

Action: wp_travel_pricing_option_content_after_trip_extra #

Fire in WP Travel trip admin price section after trip extra.

Active Since v1.9.2

Source

File: /inc/admin/views/tabs/tabs-contents/itineraries/price.php
Used by: /inc/admin/views/tabs/tabs-contents/itineraries/price.php

Parameter
$post_id, $pricing_id, $pricing

Example:

function prefix_wp_travel_pricing_option_content_after_trip_extra( $post_id, $pricing_id, $pricing ) {
    esc_html_e( ‘This is content added using this hook’, ‘text-domain’ );
}
add_action( 'wp_travel_pricing_option_content_after_trip_extra', 'prefix_wp_travel_pricing_option_content_after_trip_extra’ );

Action: wp_travel_pricing_add_new_category_button_repeator #

Fire in WP Travel trip admin price repeater section. Currently using to add a new category button repeater.

Source

File: /inc/admin/views/tabs/tabs-contents/itineraries/price.php
Used by: /inc/admin/views/tabs/tabs-contents/itineraries/price.php

Example:

function prefix_wp_travel_pricing_add_new_category_button_repeator() {
    esc_html_e( ‘This is content added using this hook’, ‘text-domain’ );
}
add_action( 'wp_travel_pricing_add_new_category_button_repeator', 'prefix_wp_travel_pricing_add_new_category_button_repeator’ );

Action: wp_travel_pricing_option_content_after_category_inside_repeator #

Fire inside WP Travel trip admin pricing option repeater section.

Source

File: /inc/admin/views/tabs/tabs-contents/itineraries/price.php
Used by: /inc/admin/views/tabs/tabs-contents/itineraries/price.php

Parameter
‘{{data.random}}’, ‘{{data.category_id}}’

Example:

function prefix_wp_travel_pricing_option_content_after_category_inside_repeator( '{{data.random}}', '{{data.category_id}}’ ) {
    esc_html_e( ‘This is content added using this hook’, ‘text-domain’ );
}
add_action( 'wp_travel_pricing_option_content_after_category_inside_repeator', 'prefix_wp_travel_pricing_option_content_after_category_inside_repeatorr’ );

Action: wp_travel_pricing_option_content_after_trip_extra_repeator #

Fire after WP Travel trip admin pricing option trip extra repeater section.

Active Since v1.9.2

Source

File: /inc/admin/views/tabs/tabs-contents/itineraries/price.php
Used by: /inc/admin/views/tabs/tabs-contents/itineraries/price.php

Parameter
‘{{data.random}}’, ‘{{data.category_id}}’

Example:

function prefix_wp_travel_pricing_option_content_after_trip_extra_repeator( '{{data.random}}', '{{data.category_id}}’ ) {
    esc_html_e( ‘This is content added using this hook’, ‘text-domain’ );
}
add_action( 'wp_travel_pricing_option_content_after_trip_extra_repeator', 'prefix_wp_travel_pricing_option_content_after_trip_extra_repeator’ );

Action: wp_travel_itinerary_after_sale_price #

Fire after WP Travel trip admin sale price.

Active Since v1.0.5

Source

File: /inc/admin/views/tabs/tabs-contents/itineraries/price.php
Used by: /inc/admin/views/tabs/tabs-contents/itineraries/price.php

Parameter
$post_id

Example:

function prefix_wp_travel_itinerary_after_sale_price( $post_id ) {
    esc_html_e( ‘This is content added using this hook’, ‘text-domain’ );
}
add_action( 'wp_travel_itinerary_after_sale_price', 'prefix_wp_travel_itinerary_after_sale_price’ );

Action: wp_travel_{$pricing_option_type}_options_list #

Hook to support custom pricing options.

Source

File: /templates/content-pricing-options.php
Used by: /templates/content-pricing-options.php

Parameters
$trip_id

Example:

function prefix_wp_travel_{$pricing_option_type}_options_list( $trip_id ) {
  esc_html_e( ‘This is content added using this hook’, ‘text-domain’ );
}
add_action( ‘wp_travel_{$pricing_option_type}_options_list', 'prefix_wp_travel_{$pricing_option_type}_options_list’ );