Table of Contents
- 1.Developer Documentation
- 2.Developers Guide
- 3.Overview
- 4.Filters
- 4.1.Filter : wp_travel_show_single_page_title
- 4.2.Filter : wp_travel_review_gravatar_size
- 4.3.Filter : wp_travel_checkout_fields
- 4.4.Filter : wp_travel_currency_symbols
- 4.5.Filter : wp_travel_archive_itineraries_col_per_row
- 4.6.Filter : wp_travel_default_view_mode
- 4.7.Filter : wp_travel_itinerary_sale_price
- 4.8.Filter : wp_travel_strings
- 4.9.Filter : wp_travel_gallery_image
- 4.10.Filter : wp_travel_booking_show_end_date
- 4.11.Filter : gettext
- 4.12.Filter: wp_travel_enable_cart_page
- 4.13.Filter: wp_travel_show_pricing_label_on_name
- 4.14.Filter :wptravel_wpml_object_id
- 4.15.Filter :plugin_locale
- 4.16.Filter :wp_travel_image_size
- 4.17.Filter :wp_travel_settings_react_enabled
- 4.18.Filter :wp_travel_apply_coupon_errors
- 4.19.Filter :wp_travel_custom_itinerary_tabs
- 4.20.Filter :wp_travel_allow_multiple_cart_items
- 4.21.Filter :wp_travel_cart_attributes
- 4.22.Filter :wp_travel_filter_update_cart_on_add
- 4.23.Filter :wp_travel_trip_discounts
- 4.24.Filter :wp_travel_filter_is_enabled_cart_page
- 4.25.Filter :.wp_travel_error_codes
- 4.26.Filter :wp_travel_premium_addons_list
- 4.27.Filter :wp_travel_success_codes
- 4.28.Filter :wp_travel_is_custom_tabs_support_enabled
- 4.29.Filter :wp_travel_settings_values
- 4.30.Filter :wp_travel_settings_options
- 4.31.Filter :wp_travel_block_before_save_settings
- 4.32.Filter :wp_travel_multiple_currency
- 4.33.Filter :wp_travel_trip_zoomlevel
- 4.34.Filter :wp_travel_trip_map_use_lat_lng
- 4.35.Filter :wp_travel_trip_data
- 4.36.Filter :wp_travel_available_pax
- 4.37.Filter :wp_travel_trip_extras_custom_prices
- 4.38.Filter :wp_travel_trip_extras_custom_sale_prices
- 4.39.Filter :wp_travel_cart_sub_total
- 4.40.Filter : wp_travel_cart_get_total_fields
- 4.41.Filter :wp_travel_filter_cart_item_id
- 4.42.Filter : wp_travel_fixed_departure_defalut
- 4.43.Filter :wp_travel_booking_post_id_to_update
- 4.44.Filter :wp_travel_email_travel_date
- 4.45.Filter :wp_travel_inventory_args
- 4.46.Filter: wp_travel_booking_admin_emails
- 4.47.Filter :wp_travel_admin_email_tags
- 4.48.Filter :wp_travel_admin_booking_email_tags
- 4.49.Filter :wp_travel_thankyou_page_url
- 4.50.Filter :wp_travel_cart_success
- 4.51.Filter :wp_travel_enqueue_single_assets
- 4.52.Filter :.wp_travel_load_google_maps_api
- 4.53.Filter :wp_travel_frontend_data
- 4.54.Filter :apply_filters( wp_travel_chart_data, $wp_travel_chart_data )
- 4.55.Filter :wp_travel_localize_gallery_data
- 4.56.Filter :wp_travel_registered_scripts
- 4.57.Filter :wp-travel-pro-bundle-items
- 4.58.Filter :wp-travel-script-handles
- 4.59.Filter :wp_travel_email_template_type
- 4.60.Filter :apply_filters( wp_travel_email_template, $email_template, $type, $sent_to )
- 4.61.Filter :wp_travel_disable_email_template_poweredby
- 4.62.Filter :wp_travel_email_template_footer_text
- 4.63.Filter :wp_travel_the_content
- 4.64.Filter :wp_travel_trip_code
- 4.65.Filter :wp_travel_tour_extras_post_type_args
- 4.66.Filter :wp_travel_itineraries_col_per_row
- 4.67.Filter :wp_travel_shortcode_atts
- 4.68.Filter :wp_travel_trip_type_post_types
- 4.69.Filter :wp_travel_destinations_post_types
- 4.70.Filter : wp_travel_kewords_post_types
- 4.71.Filter :wp_travel_activity_post_types
- 4.72.Filter :tour_extra_custom_trip_id
- 4.73.Filter :wp_travel_trip_extras_heading
- 4.74.Filter :wp_travel_process_login_errors
- 4.75.Filter :wp_travel_login_credentials
- 4.76.Filter :wp_travel_login_redirect
- 4.77.Filter :wp_travel_login_errors
- 4.78.Filter :wp_travel_process_registration_errors
- 4.79.Filter :wp_travel_registration_auth_new_customer
- 4.80.Filter :wp_travel_register_redirect
- 4.81.Filter :wp_travel_save_customer_billing_details_required_fields
- 4.82.Filter :wp_travel_save_account_details_required_fields
- 4.83.Filter :wp_travel_get_query_vars
- 4.84.Filter :wp_travel_user_dashboard_menus
- 4.85.Filter : wp_travel_get_username_from_email
- 4.86.Filter :allow_password_reset
- 4.87.Filter :apply_filters( wp_travel_country_list, $countries )
- 4.88.Filter :wp_travel_currencies
- 4.89.Filter :wp_travel_currency_symbol
- 4.90.Filter :wp_travel_booking_form_fields
- 4.91.Filter : wp_travel_checkout_traveller_fields
- 4.92.Filter :wp_travel_checkout_billing_fields
- 4.93.Filter :wp_travel_checkout_default_gateway
- 4.94.Filter :wp_travel_search_filter_widget_form_fields
- 4.95.Filter : apply_filters( wp_travel_bank_deposit_fields, $fields )
- 4.96.Filter :wp_travel_settings_fields
- 4.97.Filter :wp_travel_maps
- 4.98.Filter :wp_travel_itineraries_array
- 4.99.Filter :wp_travel_itinerary_thumbnail_size
- 4.100.Filter :wp_travel_tour_extras_array
- 4.101.Filter :wp_travel_search_filter_label_strings
- 4.102.Filter :wp_travel_search_placeholder
- 4.103.Filter :wp_travel_search_form
- 4.104.Filter :apply_filters( wp_travel_trip_duration, $content, $post_id )
- 4.105.Filter :wp_travel_payment_status_list
- 4.106.Filter :wp_travel_payment_mode_list
- 4.107.Filter :wp_travel_frontend_tab_show_in_menu
- 4.108.Filter :wp_travel_itinerary_tabs
- 4.109.Filter :wp_travel_default_trip_tabs
- 4.110.Filter :wp_travel_itinerary_faq_questions
- 4.111.Filter :wp_travel_itinerary_faq_answers
- 4.112.Filter :wp_travel_get_cart_url
- 4.113.Filter :wp_travel_get_checkout_url
- 4.114.Filter :wp_travel_is_account_page
- 4.115.Filter :wp_travel_variation_pricing_options
- 4.116.Filter :wp_travel_before_user_registration_email
- 4.117.Filter :wp_travel_email_from_name
- 4.118.Filter :wp_travel_js_date_format
- 4.119.Filter :wp_travel_moment_date_format
- 4.120.Filter :wp_travel_show_pricing_lable_on_name
- 4.121.Filter :wp_travel_trip_enquiry_label
- 4.122.Filter :wp_travel_pricing_option_listing_type
- 4.123.Filter :wp_travel_trip_archive_filter_by
- 4.124.Filter :wp_travel_booking_travel_date
- 4.125.Filter :wp_travel_trip_availability
- 4.126.Filter :wp_travel_filter_bank_deposit_account_fields
- 4.127.Filter :wp_travel_submenus
- 4.128.Filter :wp_travel_show_multiple_fixed_departure_dates
- 4.129.Filter :wp_travel_hide_per_person
- 4.130.Filter :wp_travel_inventory_data
- 4.131.Filter :wp_travel_og_image_size
- 4.132.Filter :wp_travel_template_path
- 4.133.Filter :wp_travel_theme_wrapper_class
- 4.134.Filter :wp_travel_template_group_size_text
- 4.135.Filter :wp_travel_trip_enquiry_popup_link_text
- 4.136.Filter :wp_travel_trip_tabs_output_raw
- 4.137.Filter :wp_travel_review_count
- 4.138.Filter :wp_travel_booked_message
- 4.139.Filter :wp_travel_default_group_size_text
- 4.140.Filter :wp_travel_post_filter_by_price
- 4.141.Filter :wp_travel_pagination_range
- 4.142.Filter :wp_travel_max_num_pages
- 4.143.Filter :inventory_enabled
- 4.144.Filter: wp_travel_inventory_sold_out_button
- 4.145.Filter :wp_travel_inventory_enable_status_column
- 4.146.Filter :wp_travel_pricing_max_pax
- 4.147.Filter :wp_travel_pricing_min_pax
- 4.148.Filter :wp_travel_pricing_pax_step
- 4.149.Filter :wp_travel_enquiries_form_fields
- 4.150.Filter :wp_travel_enquiry_submit_button_label
- 4.151.Filter :apply_filters( wp_travel_admin_enquiry_data, $enquery_data )
- 4.152.Filter :wp_travel_frontend_enqueries_validation_check
- 4.153.Filter :apply_filters( wp_travel_frontend_enquiry_data, $enquiry_data, $formdata )
- 4.154.Filter :wp_travel_enquiries_admin_emails
- 4.155.Filter :wp_travel_admin_enquery_email_tags
- 4.156.Filter :wp_travel_registration_error_email_exists
- 4.157.Filter :wp_travel_registration_errors
- 4.158.Filter :wp_travel_new_customer_data
- 4.159.Filter :wp_travel_get_endpoint_url
- 4.160.Filter :wp_travel_lostpassword_url
- 4.161.Filter :wp_travel_create_page_id
- 4.162.Filter :wp_travel_extras_is_pro_enabled
- 4.163.Filter :wp_travel_pricing_option_list
- 4.164.Filter :wp_travel_show_upsell_message
- 4.165.Filter :wp_travel_display_critical_admin_notices
- 4.166.Filter :wp_travel_admin_general_notice_page_screen_ids
- 4.167.Filter :wp_travel_display_general_admin_notices
- 4.168.Filter :wp_travel_deprecated_admin_notice
- 4.169.Filter :wp_travel_tabs
- 4.170.Filter :wp_travel_save_trip_metas
- 4.171.Filter :wp_travel_settings_tabs
- 4.172.Filter :wp_travel_before_save_settings
- 4.173.Filter :wp_travel_admin_tabs
- 4.174.Filter :wp_travel_dashboard_widget_bookings
- 4.175.Filter :wp_travel_network_settings_tabs
- 4.176.Filter :wp_travel_tour_extras_tabs
- 4.177.Filter :wp_travel_multiple_fixed_departures
- 4.178.Filter :wp_travel_custom_partial_payment_string
- 4.179.Filter :wp_travel_partial_payment_string
- 4.180.Filter :wp_travel_use_cart_trip_time
- 4.181.Filter :wp_travel_cart_mini_custom_partial_value
- 4.182.Filter :wp_travel_require_all_travelers_fields
- 4.183.Filter :wp_travel_hide_mini_cart_on_checkout
- 4.184.Filter :wp_travel_coupons_tabs
- 4.185.Filter :wp_travel_register_field_types
- 4.186.Filter :wp_travel_bank_deposit_allowed_files
- 4.187.Filter :wp_travel_partial_payment_due_amount
- 4.188.Filter :wp_travel_tour_extra_paypal_args
- 4.189.Filter :wp_travel_paypal_args
- 4.190.Filter :wp_travel_price_per_fields
- 4.191.Filter :wp_travel_enable_sale
- 4.192.Filter :wp_travel_price
- 4.193.Filter :wp_travel_convert_price
- 4.194.Filter :wp_travel_display_currency_symbol
- 4.195.Filter :wp_travel_payment_modes
- 4.196.Filter :wp_travel_stat_default_query_limit
- 4.197.Filter :wp_travel_booking_status_list
- 4.198.Filter :wp_travel_payment_gateway_lists
- 4.199.Filter :wp_travel_payout_percent
- 4.200.Filter :wp_travel_payments_admin_emails
- 4.201.Filter :wp_travel_payment_email_tags
- 4.202.Filter :wp_travel_admin_payment_email
- 4.203.Filter :wp_travel_client_payment_email
- 4.204.Filter :wp_travel_selected_payment_gateway
- 4.205.Filter :wp_travel_search_widget_title
- 4.206.Filter :wp_travel_inventory_pax_limit
- 4.207.Filter :wp_travel_data_max_pax
- 4.208.Filter :wp_travel_related_post_title
- 4.209.Filter :wp_travel_related_itineraries_col_per_row
- 4.210.Filter :wp_travel_product_review_comment_form_args
- 4.211.Filter :wp_travel_lost_password_message
- 4.212.Filter :wp_travel_reset_password_message
- 5.Action Hooks
- 5.1.Action : wp_travel_before_main_content
- 5.2.Action : wp_travel_after_main_content
- 5.3.Action : wp_travel_before_single_itinerary
- 5.4.Action : wp_travel_after_single_itinerary
- 5.5.Action : wp_travel_before_content_start
- 5.6.Action : wp_travel_before_single_title
- 5.7.Action : wp_travel_single_trip_after_title
- 5.8.Action : wp_travel_single_before_trip_price
- 5.9.Action : wp_travel_single_trip_after_price
- 5.10.Action : wp_travel_single_trip_meta_list
- 5.11.Action : wp_travel_single_trip_after_booknow
- 5.12.Action : wp_travel_single_trip_after_header
- 5.13.Action : wp_travel_before_trip_details
- 5.14.Action : wp_travel_trip_details
- 5.15.Action : wp_travel_after_trip_details
- 5.16.Action : wp_travel_archive_listing_sidebar
- 5.17.Action : wp_travel_before_archive_itinerary
- 5.18.Action : wp_travel_after_archive_itinerary
- 5.19.Action : wp_travel_before_archive_content_title
- 5.20.Action : wp_travel_after_archive_title
- 5.21.Action : wp_travel_dashboard_booking_table_title_after_detail
- 5.22.Action : wp_travel_dashboard_booking_table_content_after_detail
- 5.23.Action : wp_travel_itineraries_after_title
- 5.24.Action : wp_travel_review_before_comment_text
- 5.25.Action : wp_travel_review_after_comment_text
- 5.26.Action :wp_travel_update_trip_data
- 5.27.Action :wp_travel_booking_before_form_field
- 5.28.Action :wp_travel_booking_after_form_field
- 5.29.Action :wp_travel_after_booking_data_save
- 5.30.Action :wp_travel_trip_inventory
- 5.31.Action : wp_travel_after_frontend_booking_save
- 5.32.Action :wp_travel_before_stat_toolbar_fields
- 5.33.Action :wp_travel_after_stat_toolbar_fields
- 5.34.Action :wp_travel_deactivated
- 5.35.Action :wp_travel_extras_pro_extras_layout
- 5.36.Action :wp_travel_customer_reset_password
- 5.37.Action :validate_password_reset
- 5.38.Action :wp_travel_save_billing_details
- 5.39.Action :wp_travel__save_account_details
- 5.40.Action :lostpassword_post
- 5.41.Action :retrieve_password
- 5.42.Action :password_reset
- 5.43.Action :wp_travel_dashboard_booking_after_detail
- 5.44.Action :wp_travel_after_bookings_travel_date
- 5.45.Action :wp_travel_before_post_filter
- 5.46.Action :wp_travel_after_post_filter
- 5.47.Action :wp_travel_after_deleting_booking_transient
- 5.48.Action :wp_travel_action_after_itinerary_date
- 5.49.Action :wp_travel_booking_after_select_button
- 5.50.Action :wp_travel_action_additional_pricing_attributes
- 5.51.Action :wp_travel_trip_extras
- 5.52.Action :wp_travel_after_enquiry_save
- 5.53.Action :wp_travel_after_enquiries_email_sent
- 5.54.Action :wp_travel_created_customer
- 5.55.Action :wp_travel_action_after_trash_booking
- 5.56.Action :wp_travel_action_after_untrash_booking
- 5.57.Action :wp_travel_trip_extras_fields
- 5.58.Action :wp_travel_extras_pro_single_options
- 5.59.Action :wp_travel_critical_admin_notice
- 5.60.Action :wp_travel_general_admin_notice
- 5.61.Action :wp_travel_after_payment_detail
- 5.62.Action :wp_travel_itinerary_extra_meta_save
- 5.63.Action :wp_travel_before_admin_setting_form
- 5.64.Action :wp_travel_after_admin_setting_form
- 5.65.Action :wp_travel_tabs_content_ . $collection . _ . $key
- 5.66.Action :wp_travel_trip_cart_checkout_tab_content
- 5.67.Action :wp_travel_trip_downloads_tab_content
- 5.68.Action :wp_travel_utils_itinerary_global_faq_settings
- 5.69.Action :wp_travel_trip_inventory_tab_content
- 5.70.Action :wp_travel_itinerary_list_before_description
- 5.71.Action :wp_travel_itinerary_list_template_before_description
- 5.72.Action :wp_travel_admin_map_area
- 5.73.Action :wp_travel_pricing_add_new_category_button
- 5.74.Action :wp_travel_pricing_option_content_after_category
- 5.75.Action :wp_travel_pricing_option_content_after_trip_extra
- 5.76.Action :wp_travel_pricing_add_new_category_button_repeator
- 5.77.Action :wp_travel_pricing_option_content_after_category_inside_repeator
- 5.78.Action :wp_travel_pricing_option_content_after_trip_extra_repeator
- 5.79.Action :wp_travel_after_trip_duration_fields
- 5.80.Action :wp_travel_after_end_date
- 5.81.Action :wp_travel_price_tab_after_multiple_date
- 5.82.Action :wp_travel_price_tab_after_multiple_date_template
- 5.83.Action :wp_travel_itinerary_after_sale_price
- 5.84.Action :wp_travel_itinerary_price_tab_table_last_row
- 5.85.Action :wp_travel_itinerary_custom_tabs
- 5.86.Action :wp_travel_addons_setings_tab_fields
- 5.87.Action :wp_travel_settings_tab_cart_checkout_fields
- 5.88.Action :wp_travel_below_debug_tab_fields
- 5.89.Action :wp_travel_tab_content_before_email
- 5.90.Action :wp_travel_tab_content_before_booking_tamplate
- 5.91.Action :wp_travel_utils_booking_notif
- 5.92.Action :wp_travel_multiple_booking_admin_template_settings
- 5.93.Action :wp_travel_multiple_booking_client_template
- 5.94.Action :wp_travel_utils_payment_notif
- 5.95.Action :wp_travel_multiple_payment_admin_template
- 5.96.Action :wp_travel_multiple_payment_client_template
- 5.97.Action :wp_travel_utils_enquiries_notif
- 5.98.Action :wp_travel_enquiry_customer_email_settings
- 5.99.Action :wp_travel_email_template_settings_after_enquiry
- 5.100.Action: wp_travel_settings_tab_field_editor_fields
- 5.101.Action :wp_travel_settings_after_currency
- 5.102.Action :wp_travel_after_page_settings
- 5.103.Action : wp_travel_tab_content_before_trips
- 5.104.Action :wp_travel_tab_content_after_trips
- 5.105.Action :wp_travel_license_tab_fields
- 5.106.Action : wp_travel_settings_tab_misc_options_fields
- 5.107.Action :wp_travel_before_minimum_partial_payout
- 5.108.Action :wp_travel_after_minimum_partial_payout
- 5.109.Action :wp_travel_custom_global_tabs
- 5.110.Action :wp_travel_settings_tab_faq_fields
- 5.111.Action :wp_travel_tour_extras_gallery_tab_content
- 5.112.Action :wp_travel_extras_pro_options
- 5.113.Action :wp_travel_tour_extras_mini_cart_block
- 5.114.Action :wp_travel_action_before_checkout_field
- 5.115.Action :wp_travel_action_before_billing_info_field
- 5.116.Action :wp_travel_action_before_payment_info_field
- 5.117.Action :wp_travel_action_after_payment_info_field
- 5.118.Action :wp_travel_before_checkout_page_wrap
- 5.119.Action: wt_before_payment_process
- 5.120.Action :wp_travel_after_successful_payment
- 5.121.Action :wp_travel_verify_paypal_ipn
- 5.122.Action :wp_travel_before_payment_email_send
- 5.123.Action :wp_travel_multiple_payment_emails
- 5.124.Action :wp_travel_after_payment_email_sent
- 5.125.Action :wp_travel_multiple_time_cart_page
- 5.126.Action :wp_travel_action_cart_after_date
- 5.127.Action :wp_travel_cart_before_product_subtotal
- 5.128.Action :wp_travel_tour_extras_cart_block
- 5.129.Action :wp_travel_booking_default_princing_list
- 5.130.Action :wp_travel_booking_fixed_departure_list
- 5.131.Action :wp_travel_{$pricing_option_type}_options_list
- 5.132.Action :wp_travel_review_before_comment_meta
- 5.133.Action :wp_travel_before_edit_account_form
- 5.134.Action: wp_travel_edit_account_form_start
- 5.135.Action: wp_travel_edit_account_form
- 5.136.Action :wp_travel_edit_account_form_end
- 5.137.Action :wp_travel_after_edit_account_form
- 5.138.Action :wp_travel_before_edit_billing_form
- 5.139.Action :wp_travel_edit_billing_form_start
- 5.140.Action :wp_travel_edit_billing_form
- 5.141.Action: wp_travel_edit_billing_form_end
- 5.142.Action :wp_travel_after_edit_billing_form
- 5.143.Action :wp_travel_after_registration_form_password
- 5.144.Action :wp_travel_lostpassword_form
- 5.145.Action :wp_travel_resetpassword_form
- 5.146.Action :wp_travel_user_dashboard_after_account_info
- 5.147.Action :wp_travel_before_item_title
- 6.Deprecated Action Hooks
- 6.1.Action :wp_travel_update_trip_inventory_values
- 6.2.Action :wp_travel_booked_times_details
- 6.3.Action: wp_travel_single_after_trip_price
- 6.4.Action :wp_travel_single_itinerary_before_trip_meta_list
- 6.5.Action :wp_travel_single_itinerary_after_trip_meta_list
- 6.6.Action :wp_travel_single_after_booknow
- 6.7.Action :wp_travel_tabs_content_ . $collection
- 6.8.Action :wp_travel_payment_gateway_fields
- 6.9.Action :wp_tarvel_before_archive_title
- 6.10.Action :wp_travel_booking_princing_options_list
- 6.11.Action :wp_travel_booking_departure_date_list
- 6.12.Action :wp_tarvel_before_single_title
- 6.13.Action :wp_travel_after_single_title
- 6.14.Action :wp_travel_after_single_itinerary_header
- 6.15.Action :wp_tarvel_before_archive_title
- 7.Constants
- 8.Template Override
- 9.How to modify the email template ?
- 10.How to modify the template ?
WP Travel Developer documentation is written for all those developers who are willing to make the changes in the existing functionalities of the plugin and integrate the custom requirements on their own. This document includes all the hooks and filters that our developer team has given in order to make the modification process more easy and dynamic.
One of the major pre-requisite for the fruitful outcome of this documentation is a fluent knowledge on PHP programming language and knowledge on technical side of WordPress.
WP Travel Hooks: Actions and Filters
What are hooks?
In WordPress, hooks helps you to change or add code without editing core files of the plugin or theme. Hooks are very useful for those who want to customize the files.
Hook Types:
- Actions hook allows you to insert custom code at the point where the hook is running.
- Filters hook allows you to control, modify the variable and return it. ( For e.g trip duration ).
How can you use hooks?
You can use the hooks in different ways:
- Child theme functions.php file.
- Using third party plugins such as Code Snippets.
Action hooks example
“do_action('your_action_name');
”.
Here is where to place your code:
add_action( 'your_action_name', 'your_function_name' ); function your_function_name() { // Your code goes here }
Filter hooks example
“apply_filter( 'your_filter_name', $args );
”.
Here you can modify or control the argument and return it. ( You must return value ).
add_filter( 'your_filter_name', 'your_function_name' ); function your_function_name( $args ) { // Your code return $args; }
- Developers can use the Action hooks listed below to trigger the custom function in occurrence of certain event.
- Filter hooks can be implemented if developers are willing to modify the functionality of existing functions.
- Please make sure that no any customization work is being carried out in the main plugin file, since, all the code modifications will revert back with the update in the plugin file.
- While making the changes in the codes using the given hooks, make sure your WP Travel version is up to date. While we are constantly working to add and enhance the functionality of the plugin, hooks might have been modified or deprecated. Using deprecated hooks will show no changes even if you are doing the correct work.
The image below gives the Bird’s eye view of the hooks that is present in the single trip page of the trips.
This filter allows you to remove the title of the trip if you don’t want it to display in the single trip page.
Source
File : /templates/content-single-itineraries.php
Used by |
/templates/content-single-itineraries.php |
Example :
function prefix_wp_travel_show_single_page_title( $show ) {
return false; // This will hide the page title.
}
add_filter( 'wp_travel_show_single_page_title', 'prefix_wp_travel_show_single_page_title' );
Source
File : /templates/review.php
Used by |
/templates/review.php |
Example :
function prefix_wp_travel_review_gravatar_size( $size ) { return '50'; // Filters grvatar size. } add_filter( 'wp_travel_review_gravatar_size', 'prefix_wp_travel_review_gravatar_size' );
Source
File : /inc/form-fields.php
Used by |
/inc/form-fields.php |
Example :
function wp_travel_billing_form_edit_fields( $checkout_fields ) { unset( $checkout_fields['traveller_fields']['country'] ); return $checkout_fields; } add_filter('wp_travel_checkout_fields','wp_travel_billing_form_edit_fields');
Source
File : /inc/currencies.php
Used by |
/inc/currencies.php |
Example :
add_filter( 'wp_travel_currency_symbols', function( $currency_symbols ) { $currency_symbols['USD'] = "Your Text"; return $currency_symbols; } );
Source
File : /inc/template-functions.php
Used by |
/inc/template-functions.php |
Example :
function wp_travel_manage_column(){ return 4; } add_filter('wp_travel_archive_itineraries_col_per_row','wp_travel_manage_column');
Source
File : /inc/template-functions.php
Used by |
/inc/template-functions.php |
Example :
function wp_travel_view_mode(){ return "grid"; } add_filter('wp_travel_default_view_mode','wp_travel_view_mode');
Source
File : /inc/helpers/helpers-price.php
Used by |
/inc/helpers/helpers-price.php |
Example :
function wp_travel_customize_sale_price_display( $s, $c, $d ) { if ( is_front_page() ) { return sprintf( esc_html__('From %1s %2s', 'wp-travel' ), $c , $d ); } return $s; } add_filter( 'wp_travel_itinerary_sale_price', 'wp_travel_customize_sale_price_display', 99, 3 );
This filter changes the string.
Source
File : /inc/helpers.php
Used by |
/inc/helpers.php |
Example :
function wp_travel_change_string($localized_strings){ $localized_strings ['bookings']['start_date'] = 'Departure Date'; $localized_strings ['bookings']['arrival_date'] = 'Departure Date'; return $localized_strings; } add_filter('wp_travel_strings','wp_travel_change_string');
This filter helps to modify the image size of the gallery.
Source
File : /inc/helpers.php
Used by |
/inc/helpers.php |
Example :
function wp_travel_thumbnail_size($sizes){ $sizes['width'] = 250; $sizes['height'] = 250; return $sizes; } add_filter('wp_travel_image_size','wp_travel_thumbnail_size'); function wp_travel_gallery_image_size( $image_size ) { return 'wp_travel_thumbnail'; } add_filter('wp_travel_gallery_image','wp_travel_gallery_image_size');
This filter helps to remove the end date.
Source
File : /inc/helpers.php
Used by |
/inc/helpers.php |
Example :
function wp_travel_remove_dates (){ return false; } add_filter('wp_travel_booking_show_end_date','wp_travel_remove_dates');
This filter helps to replace the text ‘Pricing Name’.
Example :
add_filter( 'gettext', 'wp_travel_change_field_names', 20, 3 ); function wp_travel_change_field_names( $translated_text, $text, $domain ) { if ( is_singular() ) { switch ( $translated_text ) { case 'Pricing Name' : $translated_text = __( 'your text here', 'wp-travel' ); break; } } return $translated_text; }
This filter helps to add the cart page which has been removed from the WP Travel version 4.3.2.
Example :
remove_filter( 'wp_travel_filter_is_enabled_cart_page', 'wp_travel_enable_cart_page', 10, 2 );
This filter helps to remove the price name from the checkout page and cart page.
Example :
function wp_travel_remove_price_cartpage(){ return false; } add_filter('wp_travel_show_pricing_label_on_name','wp_travel_remove_price_cartpage');
To resolve the pages mismatch issue when using WPML.
Active Since v3.1.8
Source
File: wp-travel.php
Used by: wp-travel.php, /templates/content-cart.php
Parameters
(int) $value[ $skey ], $skey, true
Example:
function get_wp_travel_page_id_by_locale( $page_id, $option ) { if ( defined( 'ICL_LANGUAGE_CODE' ) ) { $_page_id = get_option( "wp_travel_{$option}_" . ICL_LANGUAGE_CODE, $_page_id ); } return $_page_id; } add_filter( 'wptravel_wpml_object_id', 'get_wp_travel_page_id_by_locale', 11, 2 );
Load localisation file.
Source
File: wp-travel.php
Used by: wp-travel.php
Parameters
$locale
Example:
function prefix_wp_travel_locale( $locale ) { $locale = get_user_locale(); return $locale; } add_filter( 'plugin_locale', 'prefix_wp_travel_locale' );
Image sizes
Source
File: wp-travel.php
Used by: wp-travel.php
Parameters
$size
Example:
function prefix_wp_travel_image_size( $size ) { $size = array ( ‘width’ => 200, ‘height’ => 200, ); return $size; } add_filter( 'wp_travel_image_size', 'prefix_wp_travel_image_size');
React settings for trip enable/disable.
Source
File: /app/inc/admin/assets.php
Used by: /app/inc/admin/assets.php, /app/inc/admin/localize.php, /inc/helpers.php
Example:
function prefix_wp_travel_settings_react_enabled( $size ) { return false; } add_filter( 'wp_travel_settings_react_enabled', 'prefix_wp_travel_settings_react_enabled' );
Error Message
Source
File: /core/ajax/coupon.php
Used by: /core/ajax/coupon.php, /inc/class-ajax.php
Parameters
$message
Example:
function prefix_wp_travel_apply_coupon_errors( $message ) { $message = ‘<p> This is an error message. </p>’; return $massage; } add_filter( 'wp_travel_apply_coupon_errors', 'prefix_wp_travel_apply_coupon_errors' );
Custom itinerary tabs enable/disable. Default is false.
Source
File: /core/ajax/trips.php
Used by: /core/ajax/trips.php, /core/helpers/trips.php, /inc/helpers.php.
/inc/admin/views/tabs/tab-contents/itineraries/tabs.php
Example:
function prefix_wp_travel_custom_itinerary_tabs( $boolean ) { return false; } add_filter( 'wp_travel_custom_itinerary_tabs', 'prefix_wp_travel_custom_itinerary_tabs' );
Allow multiple cart items. Default is false.
Source
File: /core/helpers/cart.php
Used by: /core/helpers/cart.php, /core/REST/cart.php, /inc/booking-functions.php.
/inc/class-ajax.php, /inc/payments/wp-travel-payments.php
Example:
function prefix_wp_travel_allow_multiple_cart_items() { return true; } add_filter( 'wp_travel_allow_multiple_cart_items', 'prefix_wp_travel_allow_multiple_cart_items' );
Trip cart details.
Source
File: /core/helpers/cart.php
Used by: /core/helpers/cart.php, /inc/class-ajax.php
Parameters
$data
Example:
function prefix_wp_travel_cart_attributes( $data ) { $data[‘enable_partial’] = true; return $data; } add_filter( 'wp_travel_cart_attributes', 'prefix_wp_travel_cart_attributes' );
Update cart on add. Default is true.
Source
File: /core/helpers/cart.php
Used by: /core/helpers/cart.php, /inc/class-ajax.php
Example:
function prefix_wp_travel_filter_update_cart_on_add() { return false; } add_filter( 'wp_travel_filter_update_cart_on_add', 'prefix_wp_travel_filter_update_cart_on_add' );
Discount implementation.
Source
File: /core/helpers/cart.php
Used by: /core/helpers/cart.php, /inc/cart/class-cart.php
Parameters
$discount, $cart_items
Example:
function prefix_wp_travel_trip_discounts( $discount, $cart_items ) { $discount[‘value’] = 200; return $discount; } add_filter( 'wp_travel_trip_discounts', 'prefix_wp_travel_trip_discounts', 12, 2 );
Cart page enable/disable.
Active Since v4.3.2
Source
File: /core/helpers/cart.php
Used by: /core/helpers/cart.php
Parameters
$enabled, $settings
Example:
function prefix_wp_travel_filter_is_enabled_cart_page() { return false; } add_filter( 'wp_travel_filter_is_enabled_cart_page', 'prefix_wp_travel_filter_is_enabled_cart_page' );
Error codes for WP Travel.
Active Since v4.0.0
Source
File: /core/helpers/error_codes.php
Used by: /core/helpers/error_codes.php
Parameters
$error_codes, $args
Example:
function prefix_wp_travel_error_code( $error_codes, $args ) { $error_codes[‘YOUR_CUSTOM_CODE’] = array ('message' => __( 'Message here.', 'wp-travel' ), ); return $error_codes; } add_filter( 'wp_travel_error_code', 'prefix_wp_travel_error_code', 12, 2 );
WP Travel Premium addons list.
Source
File: /core/helpers/license.php
Used by: /core/helpers/license.php, /inc/license/wp-travel-license.php
Parameters
$premium_addons
Example:
function prefix_wp_travel_premium_addons_list( $premium_adddons ) { $premium_addons[‘wp_travel_downloads’] = ‘WP Travel Downloads’; return $premium_addons; } add_filter( 'wp_travel_premium_addons_list', 'prefix_wp_travel_premium_addons_list' );
WP Travel Success codes.
Source
File: /core/helpers/response_codes.php
Used by: /core/helpers/response_codes.php
Parameters
$codes
Example:
function prefix_wp_travel_success_codes( $codes ) { $codes[‘YOUR_CUSTOM_CODE’] = return $premium_addons; } add_filter( 'wp_travel_success_codes', 'prefix_wp_travel_success_codes' );
Custom tab support enable/disable.
Source
File: /core/helpers/settings.php
Used by: /core/helpers/settings.php, /inc/helpers.php,
/inc/admin/views/tabs/tab-contents/settings/tabs-global.php
Example:
function prefix_wp_travel_is_custom_tabs_support_enabled() { return false } add_filter( 'wp_travel_is_custom_tabs_support_enabled', 'prefix_wp_travel_is_custom_tabs_support_enabled' );
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' );
Main settings additional values like dropdown options etc.
Source
File: /core/helpers/settings.php
Used by: /core/helpers/settings.php
Parameters
$settings_options, $settings
Example:
function prefix_wp_travel_settings_options( $settings_options, $settings ) { $settings_options[‘custom_data’] = array( ‘data1’, ‘data2’, ); return $settings_options; } add_filter( 'wp_travel_settings_options', 'prefix_wp_travel_settings_options', 12, 2 );
Filter before main save settings.
Source
File: /core/helpers/settings.php
Used by: /core/helpers/settings.php
Parameters
$settings, $settings_data
Example:
function prefix_wp_travel_block_before_save_settings( $settings, $settings_data ) { $settings_data[‘custom_data’] = array( ‘data1’, ‘data2’, ); $settings[ ‘custom_data’ ] = $settings_data[‘custom_data’]; return $settings; } add_filter( 'wp_travel_block_before_save_settings', 'prefix_wp_travel_block_before_save_settings', 12, 2 );
Support for multiple currencies.
Source
File: /core/helpers/trip-extras.php
Used by: /core/helpers/trip-extras.php, /core/helpers/trip-pricing-categories.php
Parameters
$price
Example:
function prefix_wp_travel_multiple_currency( $price ) { $price = ( $price * 1.6 ); return $price; } add_filter( 'wp_travel_multiple_currency', 'prefix_wp_travel_multiple_currency' );
Google map zoom level.
Source
File: /core/helpers/trips.php
Used by: /core/helpers/trips.php
Parameters
$zoomlevel, $trip_id
Example:
function prefix_wp_travel_trip_zoomlevel( $zoomlevel, $trip_id ) { $zoomlevel = 15; return $zoomlevel; } add_filter( 'wp_travel_trip_zoomlevel', 'prefix_wp_travel_trip_zoomlevel', 12, 2 );
Enable search using latitude/longitude. Default is no.
Source
File: /core/helpers/trips.php
Used by: /core/helpers/trips.php
Parameters
$use_lat_lng, $trip_id
Example:
function prefix_wp_travel_trip_map_use_lat_lng( $use_lat_lng, $trip_id ) { $use_lat_lng = ’yes’; return $use_lat_lng; } add_filter( 'wp_travel_trip_map_use_lat_lng', 'prefix_wp_travel_trip_map_use_lat_lng', 12, 2 );
Filter to add trip custom data.
Source
File: /core/helpers/trips.php
Used by: /core/helpers/trips.php
Parameters
$trip_data, $trip->ID
Example:
function prefix_wp_travel_trip_data( $trip_data, $trip_id ) { $trip_data[‘custom_data’] = ‘Hello World’; return $trip_data; } add_filter( 'wp_travel_trip_data', 'prefix_wp_travel_trip_data', 12, 2 );
Filter to add trip custom data.
Source
File: /core/helpers/trips.php
Used by: /core/helpers/trips.php
Parameters
$trip_data, $trip->ID
Example:
function prefix_wp_travel_trip_data( $trip_data, $trip_id ) { $trip_data[‘custom_data’] = ‘Hello World’; return $trip_data; } add_filter( 'wp_travel_trip_data', 'prefix_wp_travel_trip_data', 12, 2 );
Filter to add custom price for tour extras.
Source
File: /core/lib/cart.php
Used by: /core/lib/cart.php, /inc/cart/class-cart.php
Parameters
$price, $e_id, $trip[‘trip_id’]
Example:
function prefix_wp_travel_trip_extras_custom_prices( $price, $e_id, $trip_id ) { $price = 200; return $price; } add_filter( 'wp_travel_trip_extras_custom_prices', 'prefix_wp_travel_trip_extras_custom_prices', 12, 3 );
Filter for custom sale price for trip extras enable/disable.
Source
File: /core/lib/cart.php
Used by: /core/lib/cart.php, /inc/cart/class-cart.php
Parameters
$sale_price, $e_id, $trip[‘trip_id’]
Example:
function prefix_wp_travel_trip_extras_custom_sale_prices() { return true; } add_filter( 'wp_travel_trip_extras_custom_sale_prices', 'prefix_wp_travel_trip_extras_custom_sale_prices' );
Cart total price.
Source
File: /core/lib/cart.php
Used by: /core/lib/cart.php, /inc/cart/class-cart.php
Parameters
$cart_total
Example:
function prefix_wp_travel_trip_extras_custom_sale_prices( $cart_total ) { return ( $cart_total + 100 ); } add_filter( 'wp_travel_cart_sub_total', 'prefix_wp_travel_cart_sub_total' );
Total cart prices ( cart_total, discount, tax etc ) in array.
Source
File: /core/lib/cart.php
Used by: /core/lib/cart.php, /inc/cart/class-cart.php
Parameters
$get_total
Example:
function prefix_wp_travel_cart_get_total_fields( $get_total ) { $get_total[‘discount’] = 20; return $get_total; } add_filter( 'wp_travel_cart_get_total_fields', 'prefix_wp_travel_cart_get_total_fields' );
Filter for cart item ID.
Active Since v1.5.8
Source
File: /core/lib/cart.php
Used by: /core/lib/cart.php, /inc/cart/class-cart.php
Parameters
md5( $cart_item_id ), $trip_id, $price_key, $start_date
Example:
function prefix_wp_travel_filter_cart_item_id( $cart_item_id ) { $cart_item_id = 123; return $cart_item_id; } add_filter( 'wp_travel_filter_cart_item_id', 'prefix_wp_travel_filter_cart_item_id' );
Fixed departure enable/disable.
Source
File: /inc/helpers.php
Used by: /inc/helpers.php, /inc/template-functions.php,
/inc/admin/views/tabs/tab-contents/itineraries/price.php
Parameters
$fixed_departure
Example:
function prefix_wp_travel_fixed_departure_defalut( $fixed_departure) { return ‘no’; } add_filter( 'wp_travel_fixed_departure_defalut', 'prefix_wp_travel_fixed_departure_defalut' );
Booking ID to update data.
Source
File: /inc/booking-functions.php
Used by: /inc/booking-functions.php, /inc/trip-enquiries.php
Parameters
$booking_id, $key, $field[‘name’]
Example:
function prefix_wp_travel_booking_post_id_to_update( $booking_id, $key, $field_name ) { $booking_id = ‘BOOKING ID’; return $booking_id; } add_filter( 'wp_travel_booking_post_id_to_update', 'prefix_wp_travel_booking_post_id_to_update', 12, 3 );
Arrival date for email.
Active Since v3.1.3
Source
File: /inc/booking-functions.php
Used by: /inc/booking-functions.php
Parameters
$item[‘arrival_date’], $item
Example:
function prefix_wp_travel_email_travel_date( $arrval_date, $item ){ $arrival_date = ‘ARRIVAL DATE’; return $arrival_date; } add_filter( 'wp_travel_email_travel_date', 'prefix_wp_travel_email_travel_date', 12, 2 );
function prefix_wp_travel_email_travel_date( $arrval_date, $item ){ $arrival_date = ‘ARRIVAL DATE’; return $arrival_date; } add_filter( 'wp_travel_email_travel_date', 'prefix_wp_travel_email_travel_date', 12, 2 );
Trip Inventory arguments in array.
Active Since v4.0.0
Source
File: /inc/booking-functions.php
Used by: /inc/booking-functions.php
Parameters
$inventory_args
Example:
function prefix_wp_travel_inventory_args( $inventory_args ) { $inventory_args[‘custom_data’] = ‘CUSTOM DATA’; return $inventory_args; } add_filter( 'wp_travel_inventory_args', 'prefix_wp_travel_inventory_args' );
Booking admin email address.
Source
File: /inc/booking-functions.php
Used by: /inc/booking-functions.php
Parameters
$site_admin_email
Example:
function prefix_wp_travel_booking_admin_emails( $site_admin_email ){ $site_admin_email = ‘test@test.com’; return $site_admin_email; } add_filter( 'wp_travel_booking_admin_emails', 'prefix_wp_travel_booking_admin_emails' );
Email tags in array.
Source
File: /inc/booking-functions.php
Used by: /inc/booking-functions.php
Parameters
$email_tags, $booking_id
Example:
function prefix_wp_travel_admin_email_tags( $email_tags, $booking_id ) { $email_tags[‘{custom_email_tag}’] = ‘value’; return $email_tags; } add_filter( 'wp_travel_admin_email_tags', 'prefix_wp_travel_admin_email_tags', 12, 2 );
Admin Email tags in array.
Source
File: /inc/booking-functions.php
Used by: /inc/booking-functions.php
Parameters
$email_tags, $booking_id
Example:
function prefix_wp_travel_admin_booking_email_tags( $email_tags, $booking_id ) { $email_tags[‘{custom_email_tag}’] = ‘value’; return $email_tags; } add_filter( 'wp_travel_admin_booking_email_tags', 'prefix_wp_travel_admin_booking_email_tags', 12, 2 );
Thank You Page after checkout URL.
Source
File: /inc/booking-functions.php
Used by: /inc/booking-functions.php, /inc/helpers.php,
/inc/gateway/standard-paypal/class-wp-travel-gateway-paypal-request.php
Parameters
$thankyou_page_url, $booking_id
Example:
function prefix_wp_travel_thankyou_page_url( $thankyou_page_url, $booking_id ) { $thankyou_page_url = ‘URL’; return $thankyou_page_url; } add_filter( 'wp_travel_thankyou_page_url', 'prefix_wp_travel_thankyou_page_url', 12, 2 );
WP Travel notice for cart update success.
Source
File: /inc/class-ajax.php
Used by: /inc/class-ajax.php
Example:
function prefix_wp_travel_cart_success() { return ‘<p> Message here. </p>’; } add_filter( 'wp_travel_cart_success', 'prefix_wp_travel_cart_success' );
Filter for enqueue assets if true.
Source
File: /inc/class-assets.php
Used by: /inc/class-assets.php
Parameters
$is_wp_travel_single_pages, $trip_id
Example:
function prefix_wp_travel_enqueue_single_assets( $is_wp_travel_single_pages, $trip_id ) { $is_wp_travel_single_pages = is_singular(‘YOUR CUSTOM POST TYPES’); return $is_wp_travel_single_pages; } add_filter( 'wp_travel_enqueue_single_assets', 'prefix_wp_travel_enqueue_single_assets', 12, 2 );
Show google map or not.
Source
File: /inc/class-assets.php
Used by: /inc/class-assets.php, /inc/template-functions.php,
/inc/admin/views/tabs/tab-contents/itineraries/locations.php
Parameters
$show_google_map
Example:
function prefix_wp_travel_load_google_maps_api() { return true; } add_filter( 'wp_travel_load_google_maps_api', 'prefix_wp_travel_load_google_maps_api' );
WP Travel localized variable for frontend.
Source
File: /inc/class-assets.php
Used by: /inc/class-assets.php
Parameters
$wp_travel, $settings
Example:
function prefix_wp_travel_frontend_data( $wp_travel, $settings ) { $wp_travel[‘custom_key’] = ‘value’; return $wp_travel; } add_filter( 'wp_travel_frontend_data', 'prefix_wp_travel_frontend_data', 12, 2 );
WP Travel localized variable of chart data for admin.
Source
File: /inc/class-assets.php
Used by: /inc/class-assets.php
Parameters
$wp_travel_chart_data
Example:
function prefix_wp_travel_chart_data( $wp_travel_chart_data ) { $wp_travel_chart_data[‘custom_key’] = ‘value’; return $wp_travel_chart_data; } add_filter( 'wp_travel_chart_data', 'prefix_wp_travel_chart_data' );
WP Travel localized variable of gallery data for admin.
Source
File: /inc/class-assets.php
Used by: /inc/class-assets.php
Parameters
$wp_travel_gallery_data
Example:
function prefix_wp_travel_localize_gallery_data( $wp_travel_gallery_data ) { $wp_travel_gallery_data[‘custom_key’] = ‘value’; return $wp_travel_gallery_data; } add_filter( 'wp_travel_localize_gallery_data', 'prefix_wp_travel_localize_gallery_data' );
WP Travel registered scripts for frontend.
Source
File: /inc/class-assets.php
Used by: /inc/class-assets.php
Parameters
$assets
Example:
function prefix_wp_travel_registered_scripts( $assets ) { $assets[‘scripts’][‘custom_scripts’] = ‘Enqueue part here’; return $assets; } add_filter( 'wp_travel_registered_scripts', 'prefix_wp_travel_registered_scripts' );
WP Travel bundle registered styles/scripts for frontend.
Source
File: /inc/class-assets.php
Used by: /inc/class-assets.php
Parameters
$assets
Example:
function prefix_wp-travel-pro-bundle-items( $assets ) { $assets[‘styles’][‘custom_styles’] = ‘Enqueue part here’; return $assets; } add_filter( 'wp-travel-pro-bundle-items', 'prefix_wp-travel-pro-bundle-items' );
WP Travel script handles for loading bundled scripts.
Source
File: /inc/class-assets.php
Used by: /inc/class-assets.php
Parameters
$data
Example:
function prefix_wp-travel-script-handles( $data ) { // $data ( Array ). // Code here return $data; } add_filter( 'wp-travel-script-handles', 'prefix_wp-travel-script-handles' );
WP Travel email data like header, content etc.
Active Since v1.8.0
Source
File: /inc/class-email-template.php
Used by: /inc/class-email-template.php
Parameters
$email_data, $type, $sent_to
Example:
function prefix_wp_travel_email_template_type( $email_data, $type, $sent_to ) { $email_data[‘header_details’][‘header_title’] = ‘Title here’; return $email_data; } add_filter( 'wp_travel_email_template_type', 'prefix_wp_travel_email_template_type', 12, 3 );
WP Travel email data like header, content etc.
Active Since v1.8.0
Source
File: /inc/class-email-template.php
Used by: /inc/class-email-template.php
Parameters
$email_template, $type, $sent_to
Example:
function prefix_wp_travel_email_template( $email_template, $type, $sent_to ) { $email_template[‘mail_content’] = ‘Email Content’; return $email_template; } add_filter( 'wp_travel_email_template', 'prefix_wp_travel_email_template', 12, 3 );
Powerby disable on email footer. Default is true.
Source
File: /inc/class-email-template.php
Used by: /inc/class-email-template.php
Example:
function prefix_wp_travel_disable_email_template_poweredby() { return true; } add_filter( 'wp_travel_disable_email_template_poweredby', 'prefix_wp_travel_disable_email_template_poweredby' );
Email footer text.
Source
File: /inc/class-email-template.php
Used by: /inc/class-email-template.php
Example:
function prefix_wp_travel_email_template_footer_text() { return ’<p> This is email footer text. </p>’; } add_filter( 'wp_travel_email_template_footer_text', 'prefix_wp_travel_email_template_footer_text' );
WP Travel gets post content.
Source
File: /inc/class-itinerary.php
Used by: /inc/class-itinerary.php
Example:
function prefix_wp_travel_the_content() { $content = the_content(); return $content’; } add_filter( 'wp_travel_the_content', 'prefix_wp_travel_the_content' );
WP Travel trip code.
Source
File: /inc/class-itinerary.php
Used by: /inc/class-itinerary.php
Parameters
$code, $post_id
Example:
function prefix_wp_travel_trip_code( $code, $post_id ) { $code = ‘TRIP ’. $post_id ; return $code; } add_filter( 'wp_travel_trip_code', 'prefix_wp_travel_trip_code', 12, 2 );
WP Travel tour extras post type arguments.
Source
File: /inc/class-post-types.php
Used by: /inc/class-post-types.php
Parameters
$args
Example:
function prefix_wp_travel_tour_extras_post_type_args( $args ) { $args[‘key’] = ‘value’; return $args; } add_filter( 'wp_travel_tour_extras_post_type_args', 'prefix_wp_travel_tour_extras_post_type_args' );
WP Travel itineraries shortcode column per row filter.
Source
File: /inc/class-shortcode.php
Used by: /inc/class-shortcode.php
Parameters
Default is 2.
Example:
function prefix_wp_travel_itineraries_col_per_row() { return ‘3’; } add_filter( 'wp_travel_itineraries_col_per_row', 'prefix_wp_travel_itineraries_col_per_row' );
WP Travel trip filter shortcode attributes.
Source
File: /inc/class-shortcode.php
Used by: /inc/class-shortcode.php
Parameters
$defaults
Example:
function prefix_wp_travel_shortcode_atts( $default ) { $default[‘fact’] = 2; return $default; } add_filter( 'wp_travel_shortcode_atts', 'prefix_wp_travel_shortcode_atts' );
WP Travel itinerary types taxonomy object type.
Source
File: /inc/class-taxonomies.php
Used by: /inc/class-taxonomies.php
Parameters
$obj_type
Example:
function prefix_wp_travel_trip_type_post_types( $obj_type ) { return $obj_type[‘CUSTOM_POST_TYPE’]; } add_filter( 'wp_travel_trip_type_post_types', 'prefix_wp_travel_trip_type_post_types' );
WP Travel travel locations taxonomy object type.
Source
File: /inc/class-taxonomies.php
Used by: /inc/class-taxonomies.php
Parameters
$obj_type
Example:
function prefix_wp_travel_destinations_post_types( $obj_type ) { return $obj_type[‘CUSTOM_POST_TYPE’]; } add_filter( 'wp_travel_destinations_post_types', 'prefix_wp_travel_destinations_post_types' );
WP Travel travel keywords taxonomy object type.
Source
File: /inc/class-taxonomies.php
Used by: /inc/class-taxonomies.php
Parameters
$obj_type
Example:
function prefix_wp_travel_kewords_post_types( $obj_type ) { return $obj_type[‘CUSTOM_POST_TYPE’]; } add_filter( 'wp_travel_kewords_post_types', 'prefix_wp_travel_kewords_post_types' );
WP Travel activity taxonomy object type.
Source
File: /inc/class-taxonomies.php
Used by: /inc/class-taxonomies.php
Parameters
$obj_type
Example:
function prefix_wp_travel_activity_post_types( $obj_type ) { return $obj_type[‘CUSTOM_POST_TYPE’]; } add_filter( 'wp_travel_activity_post_types', 'prefix_wp_travel_activity_post_types' );
Filter for custom trip if for tour extra.
Source
File: /inc/class-wp-travel-extras-frontend.php
Used by: /inc/class-wp-travel-extras-frontend.php
Parameter
$trip_id
Example:
function prefix_tour_extra_custom_trip_id( $trip_id ) { $trip_id = 20; return $trip_id; } add_filter( 'tour_extra_custom_trip_id', 'prefix_tour_extra_custom_trip_id' );
Filter for tour extra heading.
Source
File: /inc/class-wp-travel-extras-frontend.php
Used by: /inc/class-wp-travel-extras-frontend.php
Parameters
Default is ‘Trip Extras’.
Example:
function prefix_wp_travel_trip_extras_heading() { return ‘ __( 'Extras for trip:', 'wp-travel' ) )’; } add_filter( 'wp_travel_trip_extras_heading', 'prefix_wp_travel_trip_extras_heading' );
Filter for login form validation error.
Source
File: /inc/class-wp-travel-form-handler.php
Used by: /inc/class-wp-travel-form-handler.php
Parameters
$validation_error, $username, $password
Example:
function prefix_wp_travel_process_login_errors( $validation_error, $username, $password ) { $validation_error = ‘ERROR VALIDATION HERE’; return $validation_error; } add_filter( 'wp_travel_process_login_errors', 'prefix_wp_travel_process_login_errors', 12, 3 );
Filter for login process credentials.
Source
File: /inc/class-wp-travel-form-handler.php
Used by: /inc/class-wp-travel-form-handler.php
Parameters
$creds
Example:
function prefix_wp_travel_login_credentials( $creds ) { $creds[‘remember’] = ‘yes’; return $creds; } add_filter( 'wp_travel_login_credentials', 'prefix_wp_travel_login_credentials' );
Filter for login redirect.
Source
File: /inc/class-wp-travel-form-handler.php
Used by: /inc/class-wp-travel-form-handler.php
Parameters
$handle_args, $user
Example:
function prefix_wp_travel_login_credentials( $handle_args, $user ){ $handle_args = remove_query_arg( 'wp_travel_error', $_POST['redirect'] ) return $handle_args; } add_filter( 'wp_travel_login_redirect', 'prefix_wp_travel_login_redirect', 12, 2 );
Filter for login error notice.
Source
File: /inc/class-wp-travel-form-handler.php
Used by: /inc/class-wp-travel-form-handler.php
Parameters
Default is ‘__( ‘Error :Invalid Username or Password’, ‘wp-travel’ ).’
Example:
function prefix_wp_travel_login_errors() { return ‘__( '<strong>Error :</strong>Username/Password not valid.', 'wp-travel' )’; } add_filter( 'wp_travel_login_errors', 'prefix_wp_travel_login_errors' );
Filter for user registration form validation error.
Source
File: /inc/class-wp-travel-form-handler.php
Used by: /inc/class-wp-travel-form-handler.php
Parameters
$validation_error, $username, $password, $email
Example:
function prefix_wp_travel_process_registration_errors( $validation_error, $username, $password, $email ) { $validation_error = ‘ERROR VALIDATION HERE’; return $validation_error; } add_filter( 'wp_travel_process_registration_errors', 'prefix_wp_travel_process_registration_errors', 12, 3 );
Filter for registration authentication for new customers enable/disable.
Source
File: /inc/class-wp-travel-form-handler.php
Used by: /inc/class-wp-travel-form-handler.php
Parameters
Default is true , $new_customer
Example:
function prefix_wp_travel_registration_auth_new_customer() { return false; } add_filter( 'wp_travel_registration_auth_new_customer', 'prefix_wp_travel_registration_auth_new_customer' );
Filter for user registration redirect.
Source
File: /inc/class-wp-travel-form-handler.php
Used by: /inc/class-wp-travel-form-handler.php
Parameters
$handle_args, $user
Example:
function prefix_wp_travel_register_redirect( $handle_args, $user ){ $handle_args = remove_query_arg( 'wp_travel_error', $_POST['redirect'] ) return $handle_args; } add_filter( 'wp_travel_register_redirect', 'prefix_wp_travel_register_redirect', 12, 2 );
Filter for customer billing details required field.
Source
File: /inc/class-wp-travel-form-handler.php
Used by: /inc/class-wp-travel-form-handler.php
Parameters
$fields
Example:
function prefix_wp_travel_save_customer_billing_details_required_fields( $fields ) { $fields[‘customer_zip_code’] = ‘ __( 'Your ZIP Code', 'wp-travel' )’; return $fields; } add_filter( 'wp_travel_save_customer_billing_details_required_fields', 'prefix_wp_travel_save_customer_billing_details_required_fields' );
Filter for customer account details required field.
Source
File: /inc/class-wp-travel-form-handler.php
Used by: /inc/class-wp-travel-form-handler.php
Parameters
$fields
Example:
function prefix_wp_travel_save_account_details_required_fields( $fields ) { $fields[‘acccount_first_name’] = ‘ __( 'First Name', 'wp-travel' )’; return $fields; } add_filter( 'wp_travel_save_account_details_required_fields', 'prefix_wp_travel_save_account_details_required_fields' );
Filter for getting query variables.
Source
File: /inc/class-wp-travel-query.php
Used by: /inc/class-wp-travel-form-query.php
Parameters
$query_vars
Example:
function prefix_wp_travel_get_query_vars( $query_vars ) { // $query_vars (array). // Code here return $query_vars; } add_filter( 'wp_travel_get_query_vars', 'prefix_wp_travel_get_query_vars' );
Filter for WP Travel dashboard menus.
Source
File: /inc/class-wp-travel-user-account.php
Used by: /inc/class-wp-travel-user-account.php
Parameters
$dashboard_menus
Example:
function prefix_wp_travel_user_dashboard_menus( $dashboard_menus ){ $dashboard_menus[‘test’] => array( 'menu_title' => __( 'Test', 'wp-travel' ), 'menu_icon' => '', 'menu_content_cb' => 'dashboard_menu_test_tab' ), 'priority' => 60, ), return $dashboard_menus; } add_filter( 'wp_travel_user_dashboard_menus', 'prefix_wp_travel_user_dashboard_menus' );
Filter to get username from user email.
Source
File: /inc/class-wp-travel-user-account.php
Used by: /inc/class-wp-travel-user-account.php
Parameters
Default is true.
Example:
function prefix_wp_travel_get_username_from_email() { return false; } add_filter( 'wp_travel_get_username_from_email', 'prefix_wp_travel_get_username_from_email' );
Filter to allow password reset.
Source
File: /inc/class-wp-travel-user-account.php
Used by: /inc/class-wp-travel-user-account.php
Parameters
Default is true, $user_id
Example:
function prefix_allow_password_reset() { return false; } add_filter( 'allow_password_reset', 'prefix_allow_password_reset' );
WP Travel countries list.
Source
File: /inc/countries.php
Used by: /inc/countries.php
Parameters
$countries
Example:
function prefix_wp_travel_country_list( $countries ) { $countries[‘COUNTRY SHORT FORM’] = ‘COUNTRY NAME’; return $countries; } add_filter( 'wp_travel_country_list', 'prefix_wp_travel_country_list' );
WP Travel currencies list.
Source
File: /inc/currencies.php
Used by: /inc/currencies.php
Parameters
$currency
Example:
function prefix_wp_travel_currencies( $currency ) { $currency[‘CURRENCY SHORT FORM’] = ‘CURRENCY NAME’; return $countries; } add_filter( 'wp_travel_currencies', 'prefix_wp_travel_currencies' );
WP Travel currency symbol filter.
Source
File: /inc/currencies.php
Used by: /inc/currencies.php
Parameters
$currency_symbols[ $currency_code ], $currency_code, $currency_symbols
Example:
function prefix_wp_travel_currency_symbol( $currency_symbols[ $currency_code ], $currency_code, $currency_symbols ) { $currency_symbols[ $currency_code ] = __( 'NPR', 'wp-travel' ); return $currency_symbols; } add_filter( 'wp_travel_currency_symbol', 'prefix_wp_travel_currency_symbol', 12, 3 );
WP Travel booking form fields.
Deprecated From v4.3.5
Source
File: /inc/deprecated/435.php
Used by: /inc/deprecated/435.php
Parameters
$booking_fields
Example:
function prefix_wp_travel_booking_form_fields( $booking_fields ) { $booking_fields[ ‘custom field’ ] = ‘value’; return $booking_fields; } add_filter( 'wp_travel_booking_form_fields', 'prefix_wp_travel_booking_form_fields' );
WP Travel checkout travellers fields.
Source
File:/inc/form-fields.php
Used by: /inc/form-fields.php
Parameters
$traveller_fields
Example:
function prefix_wp_travel_checkout_traveller_fields( $traveller_fields ) { $traveller_fields[ ‘custom field’ ] = ‘value’; return $traveller_fields; } add_filter( 'wp_travel_checkout_traveller_fields', 'prefix_wp_travel_checkout_traveller_fields' );
WP Travel checkout billing fields.
Source
File: /inc/form-fields.php
Used by: /inc/form-fields.php
Parameters
$billing_fields
Example:
function prefix_wp_travel_checkout_billing_fields( $billing_fields ) { $billing_fields[ ‘custom field’ ] = ‘value’; return $billing_fields; } add_filter( 'wp_travel_checkout_billing_fields', 'prefix_wp_travel_checkout_billing_fields' );
WP Travel checkout billing fields.
Source
File: /inc/form-fields.php
Used by: /inc/form-fields.php
Parameters
$selected_gateway
Example:
function prefix_wp_travel_checkout_default_gateway( $selected_gateway ) { $selected_gateway = ‘paypal’; return $selected_gateway; } add_filter( 'wp_travel_checkout_default_gateway', 'prefix_wp_travel_checkout_default_gateway' );
WP Travel search filter widget fields.
Source
File: /inc/form-fields.php
Used by: /inc/form-fields.php
function prefix_wp_travel_search_filter_widget_form_fields( $fields ) { $fields[‘custom_key’] = ‘value’; return $fields; } add_filter( 'wp_travel_search_filter_widget_form_fields', 'prefix_wp_travel_search_filter_widget_form_fields' );
Parameters
$fields
Example:
WP Travel bank deposit fields.
Active Since v2.0.0
Source
File: /inc/form-fields.php
Used by: /inc/form-fields.php
Parameters
$fields
Example:
function prefix_wp_travel_bank_deposit_fields( $fields ) { $fields[‘custom_key’] = ‘value’; return $fields; } add_filter( 'wp_travel_bank_deposit_fields', 'prefix_wp_travel_bank_deposit_fields' );
WP Travel settings fields.
Active Since v1.9.0
Source
File: /inc/helpers.php
Used by: /inc/helpers.php
Parameters
$settings_fields
Example:
function prefix_wp_travel_settings_fields( $settings_fields ) { $settings_fields[‘custom_key’] = ‘value’; return $settings_fields; } add_filter( 'wp_travel_settings_fields', 'prefix_wp_travel_settings_fields' );
WP Travel available maps.
Active Since v1.7.6
Source
File: /inc/helpers.php
Used by: /inc/helpers.php
Parameters
$wp_travel_maps
Example:
function prefix_wp_travel_maps( $wp_travel_maps ) { $wp_travel_maps[‘google-map’] = ‘__( 'Google Map', 'wp-travel' )’; return $settings_fields; } add_filter( 'wp_travel_maps', 'prefix_wp_travel_maps' );
WP Travel gets an itineraries array list.
Source
File: /inc/helpers.php
Used by: /inc/helpers.php
Parameters
$itineraries_array, $args
Example:
function prefix_wp_travel_itineraries_array( $itineraries_array, $args ) { $itineraries_array[‘ID’] = ‘SLUG’; return $itineraries_array; } add_filter( 'wp_travel_itineraries_array', 'prefix_wp_travel_itineraries_array', 12, 2 );
WP Travel post thumbnail size.
Active Since v1.0.0
Source
File: /inc/helpers.php
Used by: /inc/helpers.php
Parameters
$size
Example:
function prefix_wp_travel_itinerary_thumbnail_size( $size ) { $size = ‘small’; return $size; } add_filter( 'wp_travel_itinerary_thumbnail_size', 'prefix_wp_travel_itinerary_thumbnail_size' );
WP Travel gets tour extras array list.
Source
File: /inc/helpers.php
Used by: /inc/helpers.php
Parameters
$itineraries_array, $args
Example:
function prefix_wp_travel_tour_extras_array( $itineraries_array, $args ) { $itineraries_array[‘ID’] = ‘SLUG’; return $itineraries_array; } add_filter( 'wp_travel_tour_extras_array', 'prefix_wp_travel_tour_extras_array', 12, 2 );
WP Travel search filter labels.
Source
File: /inc/helpers.php
Used by: /inc/helpers.php
Parameters
$fields
Example:
function prefix_wp_travel_search_filter_label_strings( $fields ) { $fields[‘search’] = ‘__( ‘Finding Anything?’, ‘wp-travel’ ); return $fields; } add_filter( 'wp_travel_search_filter_label_strings', 'prefix_wp_travel_search_filter_label_strings' );
WP Travel search filter placeholder for search field.
Source
File: /inc/helpers.php
Used by: /inc/helpers.php
Parameters
$placeholder
Example:
function prefix_wp_travel_search_placeholder( $placeholder ) { $placeholder = ‘__( ‘CUSTOM PLACEHOLDER’, ‘wp-travel’ ); return $placeholder; } add_filter( 'wp_travel_search_placeholder', 'prefix_wp_travel_search_placeholder' );
WP Travel search form filter.
Source
File: /inc/helpers.php
Used by: /inc/helpers.php
Parameters
$content
Example:
function prefix_wp_travel_search_form( $content ) { $content = ‘MODIFY HERE’; return $content; } add_filter( 'wp_travel_search_form', 'prefix_wp_travel_search_form' );
WP Travel gets trip duration html.
Source
File: /inc/helpers.php
Used by: /inc/helpers.php
Parameters
$content
Example:
function prefix_wp_travel_trip_duration( $content ) { $content = ‘MODIFY TRIP DURATION HTML HERE’; return $content; } add_filter( 'wp_travel_trip_duration', 'prefix_wp_travel_trip_duration' );
WP Travel all payment status list.
Source
File: /inc/helpers.php
Used by: /inc/helpers.php
Parameters
$status
Example:
function prefix_wp_travel_payment_status_list( $status ) { $status[‘custom status’] = array( ‘color’ => ‘#FFFFFF’, ‘text’ => __( ‘Custom Status’, ‘wp-travel’), ); return $status; } add_filter( 'wp_travel_payment_status_list', 'prefix_wp_travel_payment_status_list' );
WP Travel all payment mode list.
Active Since v1.0.5
Source
File: /inc/helpers.php
Used by: /inc/helpers.php
Parameters
$mode
Example:
function prefix_wp_travel_payment_mode_list( $mode ) { $mode[‘custom status’] = array( ‘color’ => ‘#FFFFFF’, ‘text’ => __( ‘Custom Status’, ‘wp-travel’), ); return $mode; } add_filter( 'wp_travel_payment_mode_list', 'prefix_wp_travel_payment_mode_list' );
WP Travel show tab in frontend menu.
Active Since v1.9.3
Source
File: /inc/helpers.php
Used by: /inc/helpers.php
Parameters
Default is yes.
Example:
function prefix_wp_travel_frontend_tab_show_in_menu() { return ‘no’; } add_filter( 'wp_travel_frontend_tab_show_in_menu', 'prefix_wp_travel_frontend_tab_show_in_menu' );
WP Travel single itinerary tabs.
Active Since v1.9.3
Source
File: /inc/helpers.php
Used by: /inc/helpers.php
Parameters
$return_tabs
Example:
function prefix_wp_travel_itinerary_tabs( $return_tabs ) { // $return_tabs( Array ) // Code here. return $return_tabs; } add_filter( 'wp_travel_itinerary_tabs', 'prefix_wp_travel_itinerary_tabs' );
WP Travel default trip tabs.
Active Since v1.9.3
Source
File: /inc/helpers.php
Used by: /inc/helpers.php
Parameters
$return_tabs
Example:
function prefix_wp_travel_default_trip_tabs( $return_tabs ) { $return_tabs[‘overview’][‘label’] = __( ‘This is overview tab’, ‘wp-travel’); return $return_tabs; } add_filter( 'wp_travel_default_trip_tabs', 'prefix_wp_travel_default_trip_tabs' );
WP Travel faq questions for itinerary.
Active Since v2.0.7
Source
File: /inc/helpers.php
Used by: /inc/helpers.php
Parameters
$questions, $post_id
Example:
function prefix_wp_travel_itinerary_faq_questions( $questions, $post_id ) { // $questions ( Array ) // Add FAQ question here return $questions; } add_filter( 'wp_travel_itinerary_faq_questions', 'prefix_wp_travel_itinerary_faq_questions', 12, 2 );
WP Travel faq answers for itinerary.
Active Since v2.0.7
Source
File: /inc/helpers.php
Used by: /inc/helpers.php
Parameters
$answers, $post_id
Example:
function prefix_wp_travel_itinerary_faq_answers( $answers, $post_id ) { // $answers ( Array ) // Add FAQ answers here return $answers; } add_filter( 'wp_travel_itinerary_faq_answers', 'prefix_wp_travel_itinerary_faq_answers', 12, 2 );
WP Travel cart url filter.
Active Since v1.5.7
Source
File: /inc/helpers.php
Used by: /inc/helpers.php
Parameters
$url
Example:
function prefix_wp_travel_get_cart_url( $url ) { $url = “PLACE URL”; return $url; } add_filter( 'wp_travel_get_cart_url', 'prefix_wp_travel_get_cart_url' );
WP Travel checkout url filter.
Active Since v1.5.7
Source
File: /inc/helpers.php
Used by: /inc/helpers.php
Parameters
$url
Example:
function prefix_wp_travel_get_checkout_url( $url ) { $url = “PLACE URL”; return $url; } add_filter( 'wp_travel_get_checkout_url', 'prefix_wp_travel_get_checkout_url' );
WP Travel account page viewing or not.
Source
File: /inc/helpers.php
Used by: /inc/helpers.php
Parameters
Default is false.
Example:
function prefix_wp_travel_is_account_page() { return true; } add_filter( 'wp_travel_is_account_page', 'prefix_wp_travel_is_account_page' );
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' );
WP Travel user email arguments before registration.
Source
File: /inc/helpers.php
Used by: /inc/helpers.php
Parameters
$args
Example:
function prefix_wp_travel_before_user_registration_email( $args ) { $args[‘user_email’] = ‘test@test.com’; return $args; } add_filter( 'wp_travel_before_user_registration_email', 'prefix_wp_travel_before_user_registration_email' );
WP Travel email from name ‘sender’.
Source
File: /inc/helpers.php
Used by: /inc/helpers.php
Parameters
$name
Example:
function prefix_wp_travel_email_from_name( $name ) { $name = ‘NAME HERE’; return $name; } add_filter( 'wp_travel_email_from_name', 'prefix_wp_travel_email_from_name' );
WP Travel JavaScript date format.
Active Since v1.6.7
Source
File: /inc/helpers.php
Used by: /inc/helpers.php
Parameters
$js_date_format
Example:
function prefix_wp_travel_js_date_format( $js_date_format ) { $js_date_format = ‘DATE FORMAT’; return $js_date_format; } add_filter( 'wp_travel_js_date_format', 'prefix_wp_travel_js_date_format' );
WP Travel date format for moment.
Active Since v1.7.6
Source
File: /inc/helpers.php
Used by: /inc/helpers.php
Parameters
$js_date_format
Example:
function prefix_wp_travel_moment_date_format( $js_date_format ) { $js_date_format = ‘DATE FORMAT’; return $js_date_format; } add_filter( 'wp_travel_moment_date_format', 'prefix_wp_travel_moment_date_format' );
WP Travel show pricing label filter.
Active Since v4.3.1
Source
File: /inc/helpers.php
Used by: /inc/helpers.php
Parameters
Default is true.
Example:
function prefix_wp_travel_show_pricing_lable_on_name() { return false; } add_filter( 'wp_travel_show_pricing_lable_on_name', 'prefix_wp_travel_show_pricing_lable_on_name' );
WP Travel trip enquiry label filter.
Source
File: /inc/helpers.php
Used by: /inc/helpers.php
Parameters
Default is ‘__( ‘Trip Enquiry’, ‘wp-travel’ )’.
Example:
function prefix_wp_travel_trip_enquiry_label() { return ‘__( 'CUSTOM LABEL', 'wp-travel' )’; } add_filter( 'wp_travel_trip_enquiry_label', 'prefix_wp_travel_trip_enquiry_label' );
WP Travel pricing option listing type.
Source
File: /inc/helpers.php
Used by: /inc/helpers.php
Parameters
$list_type. Default is ‘by-pricing-option’.
Example:
function prefix_wp_travel_pricing_option_listing_type( $list_type ) { $list_type = ‘LIST BY TYPE’; return $list_type; } add_filter( 'wp_travel_pricing_option_listing_type', 'prefix_wp_travel_pricing_option_listing_type' );
WP Travel trips achieve filters by listing type.
Source
File: /inc/helpers.php
Used by: /inc/helpers.php
Parameters
$list_type. Default is ‘default’.
Example:
function prefix_wp_travel_trip_archive_filter_by( $list_type ) { $list_type = ‘LIST BY TYPE’; return $list_type; } add_filter( 'wp_travel_trip_archive_filter_by', 'prefix_wp_travel_trip_archive_filter_by' );
WP Travel booking arrival or travel date.
Active Since v3.1.3
Source
File: /inc/helpers.php
Used by: /inc/helpers.php
Parameters
$travel_date, $order_detail
Example:
function prefix_wp_travel_booking_travel_date( $travel_date, $order_detail ) { $travel_date = ‘DATE’; return $travel_date; } add_filter( 'wp_travel_booking_travel_date', 'prefix_wp_travel_booking_travel_date', 12, 2 );
WP Travel trip available or not filter.
Active Since v3.1.3
Source
File: /inc/helpers.php
Used by: /inc/helpers.php
Parameters
$availability, $trip_id, $price_key, $start_date
Example:
function prefix_wp_travel_trip_availability( $availability, $trip_id, $price_key, $start_date ) { return true; } add_filter( 'wp_travel_trip_availability', 'prefix_wp_travel_trip_availability', 12, 4 );
WP Travel bank deposit account fields filter.
Active Since v2.0.0
Source
File: /inc/helpers.php
Used by: /inc/helpers.php
Parameters
$display_fields
Example:
function prefix_wp_travel_filter_bank_deposit_account_fields( $display_fields ) { $display_fields[] = ‘bank details’; return $display_fields; } add_filter( 'wp_travel_filter_bank_deposit_account_fields', 'prefix_wp_travel_filter_bank_deposit_account_fields' );
WP Travel submenus list filter.
Source
File: /inc/helpers.php
Used by: /inc/helpers.php
Parameters
$all_submenus
Example:
function prefix_wp_travel_submenus( $all_submenus ) { $all_submenus[‘bookings’][‘settings2’] = array( 'priority' => '130', 'page_title' => __( 'WP Travel Settings2', 'wp-travel' ), 'menu_title' => __( 'Settings2', 'wp-travel' ), 'menu_slug' => 'settings2', 'callback' => 'setting_page_callback', ); return $all_submenus; } add_filter( 'wp_travel_submenus', 'prefix_wp_travel_submenus' );
WP Travel multiple fixed departure dates show or not.
Source
File: /inc/helpers.php
Used by: /inc/helpers.php
Parameters
Default is false.
Example:
function prefix_wp_travel_show_multiple_fixed_departure_dates() { return true; } add_filter( 'wp_travel_show_multiple_fixed_departure_dates', 'prefix_wp_travel_show_multiple_fixed_departure_dates' );
WP Travel per person in a single trip page show or hide.
Active Since v2.0.5
Source
File: /inc/helpers.php
Used by: /inc/helpers.php
Parameters
Default is false, $trip_id, $price_key
Example:
function prefix_wp_travel_hide_per_person() { return true; } add_filter( 'wp_travel_hide_per_person', 'prefix_wp_travel_hide_per_person' );
WP Travel inventory datas in array.
Source
File: /inc/helpers.php
Used by: /inc/helpers.php
Parameters
$inventory_data, $trip_id, $price_key, $start_date
Example:
function prefix_wp_travel_inventory_data( $inventory_data, $trip_id, $price_key, $start_date ) { $inventory_data[‘max_pax’] = 5; return $inventory_data; } add_filter( 'wp_travel_inventory_data', 'prefix_wp_travel_inventory_data' );
WP Travel og image size.
Source
File: /inc/og-tags.php
Used by: /inc/og-tags.php
Parameters
Default is large.
Example:
function prefix_wp_travel_og_image_size() { return ‘small’; } add_filter( 'wp_travel_og_image_size', 'prefix_wp_travel_og_image_size' );
WP Travel template path filter.
Source
File: /inc/template-functions.php
Used by: /inc/template-functions.php
Parameters
Default is ‘/wp-travel/’.
Example:
function prefix_wp_travel_template_path() { return ‘/custom-path/’; } add_filter( 'wp_travel_template_path', 'prefix_wp_travel_template_path' );
WP Travel theme wrapper class filter.
Source
File: /inc/template-functions.php
Used by: /inc/template-functions.php
Parameters
$wrapper_class, $template
Example:
function prefix_wp_travel_theme_wrapper_class( $wrapper_class, $template ) { $wrapper_class = ‘custom-class’; return $wrapper_class; } add_filter( 'wp_travel_theme_wrapper_class', 'prefix_wp_travel_theme_wrapper_class', 12, 2 );
WP Travel group size text frontend.
Source
File: /inc/template-functions.php
Used by: /inc/template-functions.php
Parameters
Default is ‘__( ‘Group size’, ‘wp-travel’ )’.
Example:
function prefix_wp_travel_template_group_size_text() { return ‘__( 'Total Group size', 'wp-travel' ) ’; } add_filter( 'wp_travel_template_group_size_text', 'prefix_wp_travel_template_group_size_text' );
WP Travel group size text frontend.
Source
File: /inc/template-functions.php
Used by: /inc/template-functions.php
Parameters
Default is ‘__( ‘Group size’, ‘wp-travel’ )’.
Example:
function prefix_wp_travel_template_group_size_text() { return ‘__( 'Total Group size', 'wp-travel' ) ’; } add_filter( 'wp_travel_template_group_size_text', 'prefix_wp_travel_template_group_size_text' );
WP Travel raw output on tab content ( without using ‘the_content’ filter ).
Source
File: /inc/template-functions.php
Used by: /inc/template-functions.php
Parameters
Default is false, $tab_key
Example:
function prefix_wp_travel_trip_tabs_output_raw( $raw, $tab_key ) { if ( 'gallery' === $tab_key ) { // Hide extra tab content on gallery tab. $raw = true; } return $raw; } } add_filter( 'wp_travel_trip_tabs_output_raw', 'prefix_wp_travel_trip_tabs_output_raw', 10, 2 );
Total count of reviews.
Source
File: /inc/template-functions.php
Used by: /inc/template-functions.php
Parameters
$count, $post
Example:
function prefix_wp_travel_review_count( $count, $post ) { if ( ‘100’ === $post->ID ) { $count = 5; } return $count; } add_filter( 'wp_travel_review_count', 'prefix_wp_travel_review_count', 10, 2 );
Message after booking has been made.
Source
File: /inc/template-functions.php
Used by: /inc/template-functions.php
Parameters
Default is ‘__( “We’ve received your booking details. We’ll contact you soon.”, ‘wp-travel’
)’.
Example:
function prefix_wp_travel_booked_message() { return ‘__( ‘Booking has been received. We’ll contact you shortly.’, ‘wp-travel’ )’; } add_filter( 'wp_travel_booked_message', 'prefix_wp_travel_booked_message' );
Group size default text.
Source
File: /inc/template-functions.php
Used by: /inc/template-functions.php
Parameters
Default is ‘esc_html__( ‘No Size Limit’, ‘wp-travel’ ) )’.
Example:
function prefix_wp_travel_default_group_size_text() { return ‘__( ‘Unlimited Size’, ‘wp-travel’ )’; } add_filter( 'wp_travel_default_group_size_text', 'prefix_wp_travel_default_group_size_text' );
Enable post filter by price.
Source
File: /inc/template-functions.php
Used by: /inc/template-functions.php
Parameters
Default is true.
Example:
function prefix_wp_travel_post_filter_by_price() { return false; } add_filter( 'wp_travel_post_filter_by_price', 'prefix_wp_travel_post_filter_by_price' );
Archive page pagination range.
Source
File: /inc/template-functions.php
Used by: /inc/template-functions.php
Parameters
Default is 2.
Example:
function prefix_wp_travel_pagination_range() { return ‘4’; } add_filter( 'wp_travel_pagination_range', 'prefix_wp_travel_pagination_range' );
Archive page maximum number pages.
Active Since v1.0.4
Source
File: /inc/template-functions.php
Used by: /inc/template-functions.php
Parameters
Default is ‘ ’.
Example:
function prefix_wp_travel_max_num_pages() { return ‘2’; } add_filter( 'wp_travel_max_num_pages', 'prefix_wp_travel_max_num_pages' );
Inventory enabled or not.
Active Since v3.0.0
Source
File: /inc/template-functions.php
Used by: /inc/template-functions.php
Parameters
Default is false, $trip_id.
Example:
function prefix_inventory_enabled() { return true; } add_filter( 'inventory_enabled', 'prefix_inventory_enabled' );
Inventory sold out message.
Source
File: /inc/template-functions.php
Used by: /inc/template-functions.php
Parameters
Default is ’ ‘, $trip_id.
Example:
function prefix_wp_travel_inventory_sold_out_button() { return ‘__( ‘Sold Out!’, ‘wp-travel’ )’; } add_filter( 'wp_travel_inventory_sold_out_button', 'prefix_wp_travel_inventory_sold_out_button' );
Inventory enables status.
Source
File: /inc/template-functions.php
Used by: /inc/template-functions.php
Parameters
Default is false, $trip_id.
Example:
function prefix_wp_travel_inventory_enable_status_column() { return true; } add_filter( 'wp_travel_inventory_enable_status_column', 'prefix_wp_travel_inventory_enable_status_column' );
Maximum pax of pricing.
Source
File: /inc/template-functions.php
Used by: /inc/template-functions.php
Parameters
$max_pax, $pricing_id
Example:
function prefix_wp_travel_pricing_max_pax( $max_pax, $pricing_id ) { if ( ‘PRICING ID’ === $pricing_id ) { $max_pax = 5; } return $max_pax; } add_filter( 'wp_travel_pricing_max_pax', 'prefix_wp_travel_pricing_max_pax', 12, 2 );
Minimum pax of pricing.
Source
File: /inc/template-functions.php
Used by: /inc/template-functions.php
Parameters
$min_pax, $pricing_id
Example:
function prefix_wp_travel_pricing_min_pax( $min_pax, $pricing_id ) { if ( ‘PRICING ID’ === $pricing_id ) { $min_pax = 2; } return $min_pax; } add_filter( 'wp_travel_pricing_min_pax', 'prefix_wp_travel_pricing_min_pax', 12, 2 );
Pricing pax step increase.
Source
File: /inc/template-functions.php
Used by: /inc/template-functions.php
Parameters
Default step is 1, $pricing_id
Example:
function prefix_wp_travel_pricing_pax_step() { return 2; } add_filter( 'wp_travel_pricing_pax_step', 'prefix_wp_travel_pricing_pax_step' );
Trip enquiry form field filter.
Source
File: /inc/trip-enquiries.php
Used by: /inc/trip-enquiries.php
Parameters
$enquiry_fields
Example:
function prefix_wp_travel_enquiries_form_fields( $enquiry_fields ) { $enquiry_fields[‘phone_no’] = array( 'type' => 'number', 'label' => __( 'Phone Number', 'wp-travel' ), 'name' => 'wp_travel_enquiry_number', 'id' => 'wp-travel-enquiry-number', 'placeholder' => __( 'Enter your Phone number', 'wp-travel' ), 'validations' => array( 'required' => false, 'maxlength' => '80', ), 'attributes' => array( 'placeholder' => __( 'Enter your Number', 'wp-travel' ), ), 'priority' => 100, ), return $enquiry_fields; } add_filter( 'wp_travel_enquiries_form_fields', 'prefix_wp_travel_enquiries_form_fields' );
Trip enquiry submit button label filter.
Source
File: /inc/trip-enquiries.php
Used by: /inc/trip-enquiries.php
Parameters
Default is ‘__( ‘SUBMIT ENQUIRY’, ‘wp-travel’ )’.
Example:
function prefix_wp_travel_enquiry_submit_button_label() { return ‘__( 'SEND ENQUIRY', 'wp-travel' )’; } add_filter( 'wp_travel_enquiry_submit_button_label', 'prefix_wp_travel_enquiry_submit_button_label' );
Filter before saving admin enquiry data.
Source
File: /inc/trip-enquiries.php
Used by: /inc/trip-enquiries.php
Parameters
$enquery_data
Example:
function prefix_wp_travel_admin_enquiry_data( $enquery_data ) { // Code here. return $enquery_data; } add_filter( 'wp_travel_admin_enquiry_data', 'prefix_wp_travel_admin_enquiry_data' );
Filter for validation check on frontend trip enquiry data.
Source
File: /inc/trip-enquiries.php
Used by: /inc/trip-enquiries.php
Parameters
$data
Example:
function prefix_wp_travel_frontend_enqueries_validation_check( $data ) { $data[‘status’] = false; return $data; } add_filter( 'wp_travel_frontend_enqueries_validation_check', 'prefix_wp_travel_frontend_enqueries_validation_check' );
Filter for validation check on frontend trip enquiry data.
Source
File: /inc/trip-enquiries.php
Used by: /inc/trip-enquiries.php
Parameters
$data
Example:
function prefix_wp_travel_frontend_enqueries_validation_check( $data ) { $data[‘status’] = false; return $data; } add_filter( 'wp_travel_frontend_enqueries_validation_check', 'prefix_wp_travel_frontend_enqueries_validation_check' );
Trip enquiry site admin email filter.
Source
File: /inc/trip-enquiries.php
Used by: /inc/trip-enquiries.php
Parameters
$site_admin_email
Example:
function prefix_wp_travel_enquiries_admin_emails( $site_admin_email ) { $site_admin_email = ‘EMAIL ADDRESS’; return $site_admin_email; } add_filter( 'wp_travel_enquiries_admin_emails', 'prefix_wp_travel_enquiries_admin_emails' );
Trip enquiry admin enquiry email tags.
Source
File: /inc/trip-enquiries.php
Used by: /inc/trip-enquiries.php
Parameters
$emai_tags
Example:
function prefix_wp_travel_admin_enquery_email_tags( $email_tags ) { $email_tags[‘{CUSTOM KEY}’] = ‘VALUE’; return $email_tags; } add_filter( 'wp_travel_admin_enquery_email_tags', 'prefix_wp_travel_admin_enquery_email_tags' );
Email already exists while registration error message.
Source
File: /inc/wp-travel-user-functions.php
Used by: /inc/wp-travel-user-functions.php
Parameters
Default is ‘__( ‘An account is already registered with your email address. Please log in.’,
‘wp-travel’ )’, $email
Example:
function prefix_wp_travel_registration_error_email_exists() { return ‘__( ‘This email has been already registered. Please use another one.’, ‘wp-travel’ )’; } add_filter( 'wp_travel_registration_error_email_exists', 'prefix_wp_travel_registration_error_email_exists' );
User registration errors.
Source
File: /inc/wp-travel-user-functions.php
Used by: /inc/wp-travel-user-functions.php
Parameters
$errors, $username, $email
Example:
function prefix_wp_travel_registration_errors( $errors, $username, $email ) { // Code here for errors. return $errors; } add_filter( 'wp_travel_registration_errors', 'prefix_wp_travel_registration_errors', 12, 3 );
Newly registered user data before inserting to database.
Source
File: /inc/wp-travel-user-functions.php
Used by: /inc/wp-travel-user-functions.php
Parameters
$data
Example:
function prefix_wp_travel_new_customer_data( $data ) { $data[‘role’] = ‘wp-travel-editor’; return $data; } add_filter( 'wp_travel_new_customer_data', 'prefix_wp_travel_new_customer_data' );
Get endpoint url filter.
Source
File: /inc/wp-travel-user-functions.php
Used by: /inc/wp-travel-user-functions.php
Parameters
$url, $endpoint, $value, $permalink
Example
function prefix_wp_travel_get_endpoint_url( $url, $endpoint, $value, $permalink ) { // Code here for url. return $url; } add_filter( 'wp_travel_get_endpoint_url', 'prefix_wp_travel_get_endpoint_url', 12, 4 );
Lost password endpoint url.
Source
File: /inc/wp-travel-user-functions.php
Used by: /inc/wp-travel-user-functions.php
Parameters
$url, $default_url
Example:
function prefix_wp_travel_lostpassword_url( $url, $default_url ) { // Code here for url. return $url; } add_filter( 'wp_travel_lostpassword_url', 'prefix_wp_travel_lostpassword_url', 12, 2);
Filter for checking if a valid page was found.
Source
File: /inc/admin/admin-helper.php
Used by: /inc/admin/admin-helper.php
Parameters
$valid_page_found, $slug, $page_content
Example:
function prefix_wp_travel_create_page_id() { return true; } add_filter( 'wp_travel_create_page_id', 'prefix_wp_travel_create_page_id' );
WP Travel Pro is enabled or not filter.
Source
File: /inc/admin/admin-helper.php
Used by: /inc/admin/admin-helper.php
Parameters
Default is false.
Example:
function prefix_wp_travel_extras_is_pro_enabled() { return true; } add_filter( 'wp_travel_extras_is_pro_enabled', 'prefix_wp_travel_extras_is_pro_enabled' );
WP Travel pricing option list.
Source
File: /inc/admin/admin-helper.php
Used by: /inc/admin/admin-helper.php
Parameters
$type
Example:
function prefix_wp_travel_pricing_option_list( $type ) { $type[‘custom-price’] = __( ‘Custom Price’, ‘wp-travel’ ); return $type; } add_filter( 'wp_travel_pricing_option_list', 'prefix_wp_travel_pricing_option_list' );
Show upsell message or not filter.
Source
File: /inc/admin/admin-helper.php
Used by: /inc/admin/admin-helper.php
Parameters
Default is true, $types
Example:
function prefix_wp_travel_show_upsell_message() { return false; } add_filter( 'wp_travel_show_upsell_message', 'prefix_wp_travel_show_upsell_message' );
Show critical admin notices or not.
Source
File: /inc/admin/admin-notices.php
Used by: /inc/admin/admin-notices.php
Parameters
Default is false.
Example:
function prefix_wp_travel_display_critical_admin_notices() { return true; } add_filter( 'wp_travel_display_critical_admin_notices', 'prefix_wp_travel_display_critical_admin_notices' );
Show general admin notice on defined notice pages.
Source
File: /inc/admin/admin-notices.php
Used by: /inc/admin/admin-notices.php
Parameters
$notice_pages
Example:
function prefix_wp_travel_admin_general_notice_page_screen_ids( $notice_pages ) { $notice_pages[] = ‘custom-page’; return $notice_pages; } add_filter( 'wp_travel_admin_general_notice_page_screen_ids', 'prefix_wp_travel_admin_general_notice_page_screen_ids' );
Show general admin notices or not.
Source
File: /inc/admin/admin-notices.php
Used by: /inc/admin/admin-notices.php
Parameters
Default is false.
Example:
function prefix_wp_travel_display_general_admin_notices() { return true; } add_filter( 'wp_travel_display_general_admin_notices', 'prefix_wp_travel_display_general_admin_notices' );
Deprecated notice on admin.
Source
File: /inc/admin/admin-notices.php
Used by: /inc/admin/admin-notices.php
Parameters
$notices
Example:
function prefix_wp_travel_deprecated_admin_notice() { $screen = get_current_screen(); $post_id = get_the_ID(); if ( WP_TRAVEL_POST_TYPE === $screen->post_type && $screen->parent_base == 'edit' && ( isset( $_GET['action'] ) && 'edit' === $_GET['action'] ) && $post_id ) { if ( $post_id ) { $pricing_option_type = wp_travel_get_pricing_option_type( $post_id ); if ( 'single-price' === $pricing_option_type ) { $notices[] = __( 'Single Pricing is deprecated and will be removed in future versions of WP Travel. Please update your pricing to multiple pricing.', 'wp-travel' ); } } } return $notices; } add_filter( 'wp_travel_deprecated_admin_notice', 'prefix_wp_travel_deprecated_admin_notice' );
WP Travel admin tabs.
Source
File: /inc/admin/class-admin-metaboxes.php
Used by: /inc/admin/class-admin-metaboxes.php
Parameters
$tabs
Example:
function prefix_wp_travel_tabs( $tabs ) { $tabs[‘custom_tab’] = array( 'tab_label' => __( 'Custom Tab', 'wp-travel' ), 'content_title' => __( ‘Custom Tabs', 'wp-travel' ), 'priority' => 130, 'callback' => 'wp_travel_trip_callback_custom_tab', // 'icon' => 'fa-images', ), return $tabs; } add_filter( 'wp_travel_tabs', 'prefix_wp_travel_tabs' );
Saving trip metas of WP Travel.
Active Since v1.8.4
Source
File: /inc/admin/class-admin-metaboxes.php
Used by: /inc/admin/class-admin-metaboxes.php
Parameters
$trip_meta, $post_id
Example:
function prefix_wp_travel_save_trip_metas( $trip_meta, $post_id ) { $trip_meta[‘wp_travel_my_custom_data’] = ‘VALUE’; return $trip_meta; } add_filter( 'wp_travel_save_trip_metas', 'prefix_wp_travel_save_trip_metas', 12, 2 );
Filter for modify/add settings tab.
Source
File: /inc/admin/class-admin-settings.php
Used by: /inc/admin/class-admin-settings.php
Parameters
$settings_fields
Example:
function prefix_wp_travel_settings_tabs( $settings_fields ) { $settings_fields[‘custom_tab’] = array( 'tab_label' => __( 'Custom', 'wp-travel' ), 'content_title' => __( 'Custom Options', 'wp-travel' ), 'priority' => 105, 'callback' => 'wp_travel_settings_callback_custom', 'icon' => 'fa-gear', ); return $settings_fields; } add_filter( 'wp_travel_settings_tabs', 'prefix_wp_travel_settings_tabs' );
WP Travel settings before updating to database.
Active Since v1.0.5
Source
File: /inc/admin/class-admin-settings.php
Used by: /inc/admin/class-admin-settings.php,
/inc/admin/class-network-settings.php
Parameters
$settings
Example:
function prefix_wp_travel_before_save_settings( $settings ) { $settings[‘wp_travel_bank_deposits’] = ‘ADD DATA HERE’; return $settings; } add_filter( 'wp_travel_before_save_settings', 'prefix_wp_travel_before_save_settings' );
WP Travel gets admin tabs.
Source
File: /inc/admin/class-admin-tabs.php
Used by: /inc/admin/class-admin-tabs.php
Parameters
$tabs
Example:
function prefix_wp_travel_admin_tabs( $tabs ) { $tour_extras['tour_extras_general'] = array( 'tab_label' => __( 'General', 'wp-travel' ), 'content_title' => __( 'General Settings', 'wp-travel' ), 'priority' => 10, 'callback' => 'wp_travel_tour_extras_general_tab_callback', 'icon' => 'fa-sticky-note', ); $tabs[ ‘tour-extras’ ] = $tour_extras; return $tabs; } add_filter( 'wp_travel_admin_tabs', 'prefix_wp_travel_admin_tabs' );
WP Travel dashboard widget booking number of posts filter.
Source
File: /inc/admin/class-dashboard-widgets.php
Used by: /inc/admin/class-dashboard-widgets.php
Parameters
Default is 5.
Example:
function prefix_wp_travel_dashboard_widget_bookings( $tabs ) { return 8; } add_filter( 'wp_travel_dashboard_widget_bookings', 'prefix_wp_travel_dashboard_widget_bookings' );
WP Travel network settings tab filter.
Source
File: /inc/admin/class-network-settings.php
Used by: /inc/admin/class-network-settings.php
Parameters
$settings_fields
Example:
function prefix_wp_travel_network_settings_tabs( $settings_fields ) { // Code here for adding tab on network settings. return $settings_fields; } add_filter( 'wp_travel_network_settings_tabs', 'prefix_wp_travel_network_settings_tabs' );
WP Travel tour extras tabs.
Source
File: /inc/admin/extras/class-tour-extras-admin-metabox.php
Used by: /inc/admin/extras/class-tour-extras-admin-metabox.php
Parameters
$tabs
Example:
function prefix_wp_travel_tour_extras_tabs( $tabs ) { $tour_extras['tour_extras_gallery'] = array( 'tab_label' => __( 'Gallery', 'wp-travel' ), 'content_title' => __( 'Gallery', 'wp-travel' ), 'priority' => 20, 'callback' => 'wp_travel_tour_extras_gallery_tab_callback', 'icon' => 'fa-images', ); $tabs[ ‘tour-extras’ ] = $tour_extras; return $tabs; } add_filter( 'wp_travel_tour_extras_tabs', 'prefix_wp_travel_tour_extras_tabs' );
WP Travel multiple fixed departure enable or not.
Source
File: /inc/admin/extras/views/tabs/tab-contents/itineraries/price.php
Used by: /inc/admin/extras/views/tabs/tab-contents/itineraries/price.php
Parameters
$multiple_fixed_departures ( boolean )
Example:
function prefix_wp_travel_multiple_fixed_departures() { return ‘no’; } add_filter( 'wp_travel_multiple_fixed_departures', 'prefix_wp_travel_multiple_fixed_departures' );
WP Travel custom partial payment label.
Active Since v3.0.7
Source
File: /inc/admin/extras/views/tabs/tab-contents/itineraries/price.php
Used by: /inc/admin/extras/views/tabs/tab-contents/itineraries/price.php
Parameters
$custom_partial_payout_string
Example:
function prefix_wp_travel_custom_partial_payment_string( $custom_partial_payout_string ) { $custom_partial_payout_string = ‘__( 'Partial Payout (MIN)(%)', 'wp-travel' )’; return $custom_partial_payout_string; } add_filter( 'wp_travel_custom_partial_payment_string', 'prefix_wp_travel_custom_partial_payment_string' );
WP Travel custom partial payment label.
Source
File: /inc/admin/extras/views/tabs/tab-contents/settings/payment.php
Used by: /inc/admin/extras/views/tabs/tab-contents/settings/payment.php
Parameters
$partial_payment_string, $settings
Example:
function prefix_wp_travel_partial_payment_string( $partial_payment_string, $settings ) { $partial_payment_string = ‘__( ‘Payout (MIN)(%)', 'wp-travel' )’; return $partial_payment_string; } add_filter( 'wp_travel_partial_payment_string', 'prefix_wp_travel_partial_payment_string', 12, 2 );
Cart trip time.
Source
File: /inc/cart/cart-mini.php
Used by: /inc/cart/cart-mini.php
Parameters
Default is ‘ ’, $cart_item
Example:
function prefix_wp_travel_use_cart_trip_time() { return ‘TRIP TIME’; } add_filter( 'wp_travel_use_cart_trip_time', 'prefix_wp_travel_use_cart_trip_time' );
Custom partial value on mini cart.
Source
File: /inc/cart/cart-mini.php
Used by: /inc/cart/cart-mini.php
Parameters
$args
Example:
function prefix_wp_travel_cart_mini_custom_partial_value( $args ) { $args[‘price_partial’] = 200; return $args; } add_filter( 'wp_travel_cart_mini_custom_partial_value', 'prefix_wp_travel_cart_mini_custom_partial_value' );
All traveller’s fields on checkout are required or not.
Source
File: /inc/cart/checkout.php
Used by: /inc/cart/checkout.php
Parameters
Default is false.
Example:
function prefix_wp_travel_require_all_travelers_fields() { return true; } add_filter( 'wp_travel_require_all_travelers_fields', 'prefix_wp_travel_require_all_travelers_fields' );
Hide mini cart on checkout or not.
Active Since v4.0.7
Source
File: /inc/cart/class-checkout.php
Used by: /inc/cart/class-checkout.php
Parameters
Default is false.
Example:
function prefix_wp_travel_hide_mini_cart_on_checkout() { return true; } add_filter( 'wp_travel_hide_mini_cart_on_checkout', 'prefix_wp_travel_hide_mini_cart_on_checkout' );
Add coupon tabs.
Source
File: /inc/coupon/inc/admin/class-admin-metaboxes.php
Used by: /inc/coupon/inc/admin/class-admin-metaboxes.php
Parameters
$tabs
Example:
function prefix_wp_travel_coupons_tabs( $tabs ) { $coupons['coupons_restrictions'] = array( 'tab_label' => __( 'Restrictions', 'wp-travel' ), 'content_title' => __( 'Coupon Restrictions', 'wp-travel' ), 'priority' => 110, 'callback' => 'wp_travel_coupons_restrictions_tab_callback', 'icon' => 'fa-lock', ); $tabs[ ‘wp-travel-coupons’ ] = $coupons; return $tabs; } add_filter( 'wp_travel_coupons_tabs', 'prefix_wp_travel_coupons_tabs' );
Filter for registering field types for WP Travel.
Source
File: /inc/framework/form/class.field.php
Used by: /inc/framework/form/class.field.php
Parameters
$field_types
Example:
function prefix_wp_travel_register_field_types( $field_types ) { $field_types['file'] = array( 'label' => __( 'File', 'wp-travel' ), 'class' => 'WP_Travel_FW_Field_File', ); return $field_types; } add_filter( 'wp_travel_register_field_types', 'prefix_wp_travel_register_field_types' );
Filter for bank deposit allowed files while depositing slip. ( For e.g jpg, png etc )
Source
File: /inc/gateways/bank-deposit.php
Used by: /inc/gateways/bank-deposit.php
Parameters
Defaults are ‘jpg, png, txt, pdf’.
Example:
function prefix_wp_travel_bank_deposit_allowed_files() { return ‘bmp, gif’; } add_filter( 'wp_travel_bank_deposit_allowed_files', 'prefix_wp_travel_bank_deposit_allowed_files' );
Filter for partial payment due amount on bank deposit.
Source
File: /inc/gateways/bank-deposit.php
Used by: /inc/gateways/bank-deposit.php
Parameters
$due_amount
Example:
function prefix_wp_travel_partial_payment_due_amount( $due_amount ) { $due_amount = $due_amount - 50; return $due_amount; } add_filter( 'wp_travel_partial_payment_due_amount', 'prefix_wp_travel_partial_payment_due_amount' );
Filter for adding tour extra information to paypal.
Source
File: /inc/gateways/standard-paypal/class-wp-travel-gateway-paypal-request.php
Used by: /inc/gateways/standard-paypal/class-wp-travel-gateway-paypal-request.php
Parameters
$args, $item, $cart_id, $agrs_index
Example:
function prefix_wp_travel_tour_extra_paypal_args( $args, $item, $cart_id, $agrs_index ) { $args[ ‘trip_extra_item_name’. $args_index ] = ‘Extras 1’; return $args; } add_filter( 'wp_travel_tour_extra_paypal_args', 'prefix_wp_travel_tour_extra_paypal_args', 12, 4 );
Filter for getting paypal arguments.
Source
File: /inc/gateways/standard-paypal/class-wp-travel-gateway-paypal-request.php
Used by: /inc/gateways/standard-paypal/class-wp-travel-gateway-paypal-request.php
Parameters
$args
Example:
function prefix_wp_travel_paypal_args( $args ) { $args[ ‘CUSTOM_INPUT’ ] = ‘VALUE’; return $args; } add_filter( 'wp_travel_paypal_args', 'prefix_wp_travel_paypal_args' );
Filter for adding price per fields options.
Active Since v1.0.5
Source
File: /inc/helpers/helpers-price.php
Used by: /inc/helpers/helpers-price.php
Parameters
$price_per
Example:
function prefix_wp_travel_price_per_fields( $price_per ) { $price_per[‘couple’] = __( ‘Couple’, ‘wp-travel’ ); return $price_per; } add_filter( 'wp_travel_price_per_fields', 'prefix_wp_travel_price_per_fields' );
Is sale enabled or not filter.
Active Since v2.0.5
Source
File: /inc/helpers/trips.php
Used by: /inc/helpers/trips.php
Parameters
$enable_sale, $post_id, $pricing_options, $price_key
Example:
function prefix_wp_travel_enable_sale( $enable_sale, $post_id, $pricing_options, $price_key ) { if ( ‘100’ === $post_id ) { $enable_sale = false; } else { $enable_sale = true; } return $enable_sale; } add_filter( 'wp_travel_enable_sale', 'prefix_wp_travel_enable_sale', 12, 4 );
WP Travel price filter.
Source
File: /inc/helpers/trips.php
Used by: /inc/helpers/trips.php
Parameters
$sale_price
Example:
function prefix_wp_travel_price( $sale_price ) { if ( $sale_price > 100 ) { $sale_price = $sale_price - (0.1 * $sale_price); } return $sale_price; } add_filter( 'wp_travel_price', 'prefix_wp_travel_price' );
Trip convert price according to currency selected. Supports multiple currencies.
Active Since v4.0.7
Source
File: /inc/helpers/helpers-price.php
Used by: /inc/helpers/helpers-price.php
Parameters
$price
Example:
function prefix_wp_travel_convert_price( $price ) { $price = ‘CUSTOM PRICE’; return $price; } add_filter( 'wp_travel_convert_price', 'prefix_wp_travel_convert_price' );
Filter for display currency symbol.
Active Since v2.0.1/ 2.0.3
Source
File: /inc/helpers/helpers-price.php
Used by: /inc/helpers/helpers-price.php
Parameters
$currency_symbol, $post_id
Example:
function prefix_wp_travel_display_currency_symbol( $price ) { $currency_symbol = __( ‘NPR’, ‘wp-travel’ ); return $currency_symbol; } add_filter( 'wp_travel_display_currency_symbol', 'prefix_wp_travel_display_currency_symbol', 12, 2 );
Filter for WP Travel payment modes.
Source
File: /inc/helpers/helpers-price.php
Used by: /inc/helpers/helpers-price.php
Parameters
$modes
Example:
function prefix_wp_travel_payment_modes( $modes ) { $mode[‘custom_mode’] = esc_html__( ‘Custom Payment’, ‘wp-travel’ ); return $mode; } add_filter( 'wp_travel_payment_modes', 'prefix_wp_travel_payment_modes' );
Filter for query limits on getting booking data.
Active Since v1.0.5
Source
File: /inc/helpers/helpers-stat.php
Used by: /inc/helpers/helpers-stat.php
Parameters
Default is 10.
Example:
function prefix_wp_travel_stat_default_query_limit() { return 8; } add_filter( 'wp_travel_stat_default_query_limit', 'prefix_wp_travel_stat_default_query_limit' );
WP Travel booking status list.
Active Since v1.0.5
Source
File: /inc/helpers/helpers-stat.php
Used by: /inc/helpers/helpers-stat.php
Parameters
$status
Example:
function prefix_wp_travel_booking_status_list( $status ) { $status[‘processing’] = array( 'color' => '#FF9800, 'text' => __( 'Under Processing', 'wp-travel' ), ), return $status; } add_filter( 'wp_travel_booking_status_list', 'prefix_wp_travel_booking_status_list' );
WP Travel payment gateway list.
Active Since v1.1.0
Source
File: /inc/payments/wp-travel-payments.php
Used by: /inc/payments/wp-travel-payments.php
Parameters
$gateway
Example:
function prefix_wp_travel_payment_gateway_lists( $gateway ) { $gateway[‘payfast’] = __( ‘PayFast Checkout’, ‘wp-travel’ ); return $gateway; } add_filter( 'wp_travel_payment_gateway_lists', 'prefix_wp_travel_payment_gateway_lists' );
WP Travel minimum payout percent.
Source
File: /inc/payments/wp-travel-payments.php
Used by: /inc/payments/wp-travel-payments.php
Parameters
$payout_percent, $post_id
Example:
function prefix_wp_travel_payout_percent( $payout_percent, $post_id ) { $payout_percent = array( 15 ); return $payout_percent; } add_filter( 'wp_travel_payout_percent', 'prefix_wp_travel_payout_percent', 12, 2 );
WP Travel payments admin email.
Source
File: /inc/payments/wp-travel-payments.php
Used by: /inc/payments/wp-travel-payments.php
Parameters
$site_admin_email
Example:
function prefix_wp_travel_payments_admin_emails( $site_admin_email ) { $site_admin_email = ‘test@test.com’; return $site_admin_email; } add_filter( 'wp_travel_payments_admin_emails', 'prefix_wp_travel_payments_admin_emails' );
WP Travel payments email tags.
Source
File: /inc/payments/wp-travel-payments.php
Used by: /inc/payments/wp-travel-payments.php
Parameters
$email_tags
Example:
function prefix_wp_travel_payment_email_tags( $email_tags ) { $email_tags[‘{custom_key}’] = ‘VALUE’; return $email_tags; } add_filter( 'wp_travel_payment_email_tags', 'prefix_wp_travel_payment_email_tags' );
WP Travel admin payment email content.
Source
File: /inc/payments/wp-travel-payments.php
Used by: /inc/payments/wp-travel-payments.php
Parameters
$admin_message_data, $booking_id
Example:
function prefix_wp_travel_admin_payment_email( $admin_message_data, $booking_id ) { $admin_message_data = ‘CONTENT HERE’; return $admin_message_data; } add_filter( 'wp_travel_admin_payment_email', 'prefix_wp_travel_admin_payment_email', 12, 2 );
WP Travel client payment email content.
Source
File: /inc/payments/wp-travel-payments.php
Used by: /inc/payments/wp-travel-payments.php
Parameters
$client_message_data, $booking_id
Example:
function prefix_wp_travel_client_payment_email( $client_message_data, $booking_id ) { $client_message_data = ‘CONTENT HERE’; return $admin_message_data; } add_filter( 'wp_travel_client_payment_email', 'prefix_wp_travel_client_payment_email', 12, 2 );
WP Travel currently selected payment gateway.
Source
File: /inc/payments/wp-travel-payments.php
Used by: /inc/payments/wp-travel-payments.php
Parameters
$selected_payment
Example:
function prefix_wp_travel_selected_payment_gateway( $selected_payment ) { $selected_payment = ‘Manage Payment’; return $selected_payment; } add_filter( 'wp_travel_selected_payment_gateway', 'prefix_wp_travel_selected_payment_gateway' );
WP Travel search widget title.
Source
File: /inc/widgets/class-wp-travel-search-filters-widget.php
Used by: /inc/widgets/class-wp-travel-search-filters-widget.php,
/inc/widgets/class-wp-travel-widget-search.php
Parameters
$title
Example:
function prefix_wp_travel_search_widget_title( $title ) { $title = ‘Search Here’; return $title; } add_filter( 'wp_travel_search_widget_title', 'prefix_wp_travel_search_widget_title' );
WP Travel inventory pax limit size.
Source
File: /templates/content-cart.php
Used by: /templates/content-cart.php
Parameters
Default is ‘ ‘, $trip_id, $price_key
Example:
function prefix_wp_travel_inventory_pax_limit() { return 5; } add_filter( 'wp_travel_inventory_pax_limit', 'prefix_wp_travel_inventory_pax_limit' );
WP Travel data maximum pax.
Source
File: /templates/content-cart.php
Used by: /templates/content-cart.php
Parameters
$max_available, $pax_limit
Example:
function prefix_wp_travel_data_max_pax( $max_available, $pax_limit ) { $max_available = 10; return $max_available; } add_filter( 'wp_travel_data_max_pax', 'prefix_wp_travel_data_max_pax', 12, 2 );
WP Travel related trips title.
Source
File: /templates/content-related-posts.php
Used by: /templates/content-related-posts.php
Parameters
Default is ‘esc_html__( ‘Related Trips’, ‘wp-travel’ )’.
Example:
function prefix_wp_travel_related_post_title( $max_available, $pax_limit ) { return ‘esc_html__( 'Here are Related Trips', 'wp-travel' )’; } add_filter( 'wp_travel_related_post_title', 'prefix_wp_travel_related_post_title' );
WP Travel related trips column per row.
Source
File: /templates/content-related-posts.php
Used by: /templates/content-related-posts.php
Parameters
Default is 3.
Example:
function prefix_wp_travel_related_itineraries_col_per_row() { return 4; } add_filter( 'wp_travel_related_itineraries_col_per_row', 'prefix_wp_travel_related_itineraries_col_per_row' );
WP Travel review form arguments.
Source
File: /templates/single-wp-travel-reviews.php
Used by: /templates/single-wp-travel-reviews.php
Parameters
$comment_form
Example:
function prefix_wp_travel_product_review_comment_form_args( $comment_form ) { $comment_form[‘custom_field’] = ‘values’; return $comment_form; } add_filter( 'wp_travel_product_review_comment_form_args', 'prefix_wp_travel_product_review_comment_form_args' );
WP Travel lost your password message.
Source
File: /templates/form-lostpassword.php
Used by: /templates/form-lostpassword.php,
/templates/account/lostpassword-confirm.php
Parameters
Default is ‘esc_html__( ‘Lost your password? Please enter your username or email
address. You will receive a link to create a new password via email.’, ‘wp-travel’ ) ’.
Example:
function prefix_wp_travel_lost_password_message( $comment_form ) { return esc_html__( ‘Please enter your email or username to create new password here and you will receive email.’, ‘wp-travel’ ); } add_filter( 'wp_travel_lost_password_message', 'prefix_wp_travel_lost_password_message' );
WP Travel reset your password message.
Source
File: /templates/form-reset-password.php
Used by: /templates/form-reset-password.php
Parameters
Default is ‘esc_html__( ‘Enter a new password below.’, ‘wp-travel’ ) ’.
Example:
function prefix_wp_travel_reset_password_message( $comment_form ) { return esc_html__( ‘Please enter new password.’, ‘wp-travel’ ); } add_filter( 'wp_travel_reset_password_message', 'prefix_wp_travel_reset_password_message' );
This hook lets you to add the content above the featured image in single trip page. The content are added in a full width container.
Source
File : /templates/archive-itineraries.php
Used by |
/templates/archive-itineraries.php |
/templates/single-itineraries.php |
Example :
function prefix_wp_travel_before_main_content() { esc_html_e( 'This is the content added using this hook', 'text-domain' ); } add_action( 'wp_travel_before_main_content', 'prefix_wp_travel_before_main_content' );
This hook lets you to add the content below the Related Trip section in single trip page. The content are added in a full width container.
Source
File : /templates/archive-itineraries.php
Used by |
/templates/archive-itineraries.php |
/templates/single-itineraries.php |
Example :
function prefix_wp_travel_after_main_content() { esc_html_e( 'This is the content added using this hook', 'text-domain' ); } add_action( 'wp_travel_after_main_content', 'prefix_wp_travel_after_main_content' );
This hook lets you to add the content above the featured image in single trip page. The container for thus added content are not in the full width container.
Source
File : /templates/content-single-itineraries.php
Used by |
/templates/content-single-itineraries.php |
Example :
function prefix_wp_travel_before_single_itinerary( $post_id ) { esc_html_e( 'This is the content added using this hook', 'text-domain' ); } add_action( 'wp_travel_before_single_itinerary', 'prefix_wp_travel_before_single_itinerary' );
This hook is an alternative to the ‘wp_travel_after_main_content’ hook which allows you to add your custom text below the “Related Trip” section in single trip page.
Source
File : /templates/content-single-itineraries.php
Used by |
/templates/content-single-itineraries.php |
Example :
function prefix_wp_travel_after_single_itinerary( $post_id ) { esc_html_e( 'This is the content added using this hook', 'text-domain' ); } add_action( 'wp_travel_after_single_itinerary', 'prefix_wp_travel_after_single_itinerary' );
This hook is an alternative to the ‘wp_travel_before_single_itinerary’ hook which allows you to add your custom text above the featured image in single trip page.
Source
File : /templates/content-single-itineraries.php
Used by |
/templates/content-single-itineraries.php |
Example :
function prefix_wp_travel_before_content_start() { esc_html_e( 'This is the content added using this hook', 'text-domain' ); } add_action( 'wp_travel_before_content_start', 'prefix_wp_travel_before_content_start' );
This hook allows you to add your custom text just above the title of the trip in single trip page.
Source
File : /templates/content-single-itineraries.php
Used by |
/templates/content-single-itineraries.php |
Example :
function prefix_wp_travel_before_single_title( $post_id ) { esc_html_e( 'This is the content added using this hook', 'text-domain' ); } add_action( 'wp_travel_before_single_title', 'prefix_wp_travel_before_single_title' );
This hook allows you to add your custom text just below the “Trip Code” i.e at the bottom of the trip meta info section.
Source
File : /templates/content-single-itineraries.php
Used by |
/templates/content-single-itineraries.php |
Example :
function prefix_wp_travel_single_trip_after_title() { esc_html_e( 'This is the content added using this hook', 'text-domain' ); } add_action( 'wp_travel_single_trip_after_title', 'prefix_wp_travel_single_trip_after_title' );
This hook allows you to add your custom text just below the trip title and above the trip price.
Source
File : /inc/template-functions.php
Used by |
/inc/template-functions.php |
Example :
function prefix_wp_travel_single_before_trip_price() { esc_html_e( 'This is the content added using this hook', 'text-domain' ); } add_action( 'wp_travel_single_before_trip_price', 'prefix_wp_travel_single_before_trip_price' );
This hook allows you to add your custom content aside the trip price detail section.
Source
File : /inc/template-functions.php
Used by |
/inc/template-functions.php |
Example :
function prefix_wp_travel_single_trip_after_price() { esc_html_e( 'This is the content added using this hook', 'text-domain' ); } add_action( 'wp_travel_single_trip_after_price', 'prefix_wp_travel_single_trip_after_price' );
This hook allows you to add your custom contents just above the ‘Trip enquiry’ and ‘Book Now’ button and below the trip meta info box in single trip page.
Source
File : /inc/template-functions.php
Introduced on WP Travel version 2.0.4
over wp_travel_single_itinerary_after_trip_meta_list
.
Used by |
/inc/template-functions.php |
Example :
function prefix_wp_travel_single_trip_meta_list() { esc_html_e( 'This is the content added using this hook', 'text-domain' ); } add_action( 'wp_travel_single_trip_meta_list', 'prefix_wp_travel_single_trip_meta_list' );
This hook is an alternative to ‘wp_travel_single_trip_after_title’ hook which allows you to add your custom text at the bottom of the trip meta info box.
Source
File : /inc/template-functions.php
Introduced on WP Travel version 2.0.4
over wp_travel_single_after_booknow.
Used by |
/inc/template-functions.php |
Example :
function prefix_wp_travel_single_trip_after_booknow() { esc_html_e( 'This is the content added using this hook', 'text-domain' ); } add_action( 'wp_travel_single_trip_after_booknow', 'prefix_wp_travel_single_trip_after_booknow);
This hook allows you to add your custom content just above the tabs section of single trip page.
Source
File : /templates/content-single-itineraries.php
Introduced on WP Travel version 2.0.4
over wp_travel_after_single_itinerary_header
.
Used by |
/templates/content-single-itineraries.php |
Example :
function prefix_wp_travel_single_trip_after_header() { esc_html_e( 'This is the content added using this hook', 'text-domain' ); } add_action( 'wp_travel_single_trip_after_header', 'prefix_wp_travel_single_trip_after_header' );
This hooks allows you to add your custom content in trip overview section
Source
File : /inc/template-functions.php
Used by |
/inc/template-functions.php |
Example :
function prefix_wp_travel_before_trip_details() { esc_html_e( 'This is the content added using this hook', 'text-domain' ); } add_action( 'wp_travel_before_trip_details', 'prefix_wp_travel_before_trip_details' );
This hook lets you add the custom content in trip overview content.
Source
File : /inc/template-functions.php
Used by |
/inc/template-functions.php |
Example :
function prefix_wp_travel_trip_details() { esc_html_e( 'This is the content added using this hook', 'text-domain' ); } add_action( 'wp_travel_trip_details', 'prefix_wp_travel_trip_details' );
This hook is an alternative to ‘wp_travel_before_trip_details’ which lets you add the custom content in the trip overview section.
Source
File : /inc/template-functions.php
Used by |
/inc/template-functions.php |
Example :
function prefix_wp_travel_after_trip_details() { esc_html_e( 'This is the content added using this hook', 'text-domain' ); } add_action( 'wp_travel_after_trip_details', 'prefix_wp_travel_after_trip_details' );
This hook allows you to add the custom content in the trips itinerary page just below the trips listing section.
Source
File : /templates/archive-itineraries.php
Used by</td |
/templates/archive-itineraries.php |
Example :
function prefix_wp_travel_archive_listing_sidebar() { esc_html_e( 'This is the content added using this hook', 'text-domain' ); } add_action( 'wp_travel_archive_listing_sidebar', 'prefix_wp_travel_archive_listing_sidebar' );
This hook allows you to add your custom content above every individual trips in the trip archive itinerary page.
Source
File : /templates/content-archive-itineraries.php
Used by |
/templates/content-archive-itineraries.php |
Example :
function prefix_wp_travel_before_archive_itinerary() { esc_html_e( 'This is the content added using this hook', 'text-domain' ); } add_action( 'wp_travel_before_archive_itinerary', 'prefix_wp_travel_before_archive_itinerary' );
This hooks allows you to add the custom content after every trip in the trip archive page.
Source
File : /templates/content-archive-itineraries.php
Used by |
/templates/content-archive-itineraries.php |
Example :
function prefix_wp_travel_after_archive_itinerary() { esc_html_e( 'This is the content added using this hook', 'text-domain' ); } add_action( 'wp_travel_after_archive_itinerary', 'prefix_wp_travel_after_archive_itinerary' );
This hook allows you to add custom content just above the trips title in archive trip page.
Source
File : /templates/content-archive-itineraries.php
Used by |
/templates/content-archive-itineraries.php |
Example :
function prefix_wp_travel_before_archive_content_title() { esc_html_e( 'This is the content added using this hook', 'text-domain' ); } add_action( 'wp_travel_before_archive_content_title', 'prefix_wp_travel_before_archive_content_title' );
This hook allows you to add your custom content just below the trips title and above the trips excerpt in trip archive page.
Source
File : /templates/content-archive-itineraries.php
Used by |
/templates/content-archive-itineraries.php |
Example :
function prefix_wp_travel_after_archive_title() { esc_html_e( 'This is the content added using this hook', 'text-domain' ); } add_action( 'wp_travel_after_archive_title', 'prefix_wp_travel_after_archive_title' );
This hook allows you to add a custom column in the booking table of WP Travel Dashboard.
Source
File : /templates/account/tab-content/bookings.php
Used by |
/templates/account/tab-content/bookings.php |
Example :
function prefix_wp_travel_dashboard_booking_table_title_after_detail() { echo '<th>New Column</th>'; // Adds new column to the Booking Listings Table on WP Travel Dashboard Page. } add_action( 'wp_travel_dashboard_booking_table_title_after_detail', 'prefix_wp_travel_dashboard_booking_table_title_after_detail' );
This hook allows you to add the custom content to the new column created by ‘wp_travel_dashboard_booking_table_title_after_detail’ hook.
Source
File : /templates/account/tab-content/bookings.php
Used by |
/templates/account/tab-content/bookings.php |
Example :
function prefix_wp_travel_dashboard_booking_table_content_after_detail() { echo '<td>data/content</td>'; // Corresponding data to the new columns added. } add_action( 'wp_travel_dashboard_booking_table_content_after_detail', 'prefix_wp_travel_dashboard_booking_table_content_after_detail' );
Source
File : /templates/itineraries-list.php
Used by |
/templates/itineraries-list.php |
Example :
function prefix_wp_travel_itineraries_after_title( $itinerary ) { echo $itinerary['index']; } add_action( 'wp_travel_itineraries_after_title', 'prefix_wp_travel_itineraries_after_title' );
This hook allows you to add a text before the review comment.
Source
File : /templates/review.php
Used by |
/templates/review.php |
Example :
function prefix_wp_travel_review_before_comment_text( $comment ) { echo '<p>This text is added before comment text</p>'; // Adds the content before comments. } add_action( 'wp_travel_review_before_comment_text', 'prefix_wp_travel_review_before_comment_text' );
This hook allows you to add a comment just below the review and the gravatar image section.
Source
File : /templates/review.php
Used by |
/templates/review.php |
Example :
function prefix_wp_travel_review_after_comment_text( $comment ) { echo '<p>This paragraph is added after comment text</p>'; // Adds the content after comments. } add_action( 'wp_travel_review_after_comment_text', 'prefix_wp_travel_review_after_comment_text' );
Fires after updating minimum trip price and before saving trip data.
Active Since: v4.0.4
Source
File: /core/helpers/trips.php
Used by: /core/helpers/trips.php
Parameters
$trip_data, $trip_id
Example:
function prefix_wp_travel_update_trip_data( $trip_data, $trip_id ) { error_log(‘I am called here before saving trip data’); } add_action( 'wp_travel_update_trip_data', 'prefix_wp_travel_update_trip_data' );
Fires before checkout booking form field.
Source
File: /inc/booking-functions.php
Used by: /inc/booking-functions.php
Example:
function prefix_wp_travel_booking_before_form_field() { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_booking_before_form_field', 'prefix_wp_travel_booking_before_form_field' );
Fires after checkout booking form field.
Source
File: /inc/booking-functions.php
Used by: /inc/booking-functions.php
Example:
function prefix_wp_travel_booking_after_form_field() { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_booking_after_form_field', 'prefix_wp_travel_booking_after_form_field' );
Fires after updating and saving data of order items. Currently using for updating payment status.
Active Since v2.0.0
Source
File: /inc/booking-functions.php
Used by: /inc/booking-functions.php
Parameters
$booking_id
Example:
function prefix_wp_travel_after_booking_data_save( $booking_id ) { if ( ! $booking_id ) { return; } $payment_id = wp_travel_get_payment_id( $booking_id ); if ( $payment_id ) { $payment_status = isset( $_POST['wp_travel_payment_status'] ) ? $_POST['wp_travel_payment_status'] : 'N/A'; update_post_meta( $payment_id, 'wp_travel_payment_status', $payment_status ); } } add_action( 'wp_travel_after_booking_data_save', 'prefix_wp_travel_after_booking_data_save' );
Add support for inventory addon options.
Active Since v4.0.0
Source
File: /inc/booking-functions.php
Used by: /inc/booking-functions.php
Parameters
$inventory_args
Example:
function prefix_wp_travel_trip_inventory( $inventory_args ) { // Code here. } add_action( 'wp_travel_trip_inventory', 'prefix_wp_travel_trip_inventory' );
Hook used to add payment and its info.
Active Since v1.0.5
Source
File: /inc/booking-functions.php
Used by: /inc/booking-functions.php
Parameters
$booking_id, $first_key
Example:
function prefix_wp_travel_after_frontend_booking_save( $booking_id, $first_key ) { if ( ! $booking_id ) { return; } $gateway = isset( $_POST['wp_travel_payment_gateway'] ) ? $_POST['wp_travel_payment_gateway'] : ''; if ( 'bank_deposit' === $gateway ) { $payment_id = wp_travel_get_payment_id( $booking_id ); $payment_mode = get_post_meta( $payment_id, 'wp_travel_payment_mode', true ); update_post_meta( $booking_id, 'wp_travel_booking_status', 'booked' ); update_post_meta( $payment_id, 'wp_travel_payment_status', 'waiting_voucher' ); } } add_action( 'wp_travel_after_frontend_booking_save', 'prefix_wp_travel_after_frontend_booking_save' );
Fire before statistic toolbar fields on booking chart.
Active Since v1.0.6
Source
File: /inc/booking-functions.php
Used by: /inc/booking-functions.php
Example:
function prefix_wp_travel_before_stat_toolbar_fields() { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_before_stat_toolbar_fields', 'prefix_wp_travel_before_stat_toolbar_fields' );
Fire after statistic toolbar fields on booking chart.
Active Since v1.0.6
Source
File: /inc/booking-functions.php
Used by: /inc/booking-functions.php
Example:
function prefix_wp_travel_after_stat_toolbar_fields() { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_after_stat_toolbar_fields', 'prefix_wp_travel_after_stat_toolbar_fields' );
Hook for WP Travel deactivation callback.
Active Since v1.0.0
Source
File: /inc/class-install.php
Used by: /inc/class-install.php
Example:
function prefix_wp_travel_deactivated() { // Code here. } add_action( 'wp_travel_deactivated', 'prefix_wp_travel_deactivated' );
Fire at single itineraries page of WP Travel.
Source
File: /inc/class-wp-travel-extras-frontend.php
Used by: /inc/class-wp-travel-extras-frontend.php
Parameters
$trip_extras, $price_key, $arrival_date, $trip_id
Example:
function prefix_wp_travel_extras_pro_extras_layout( $trip_extras, $price_key, $arrival_date, $trip_id ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_extras_pro_extras_layout', 'prefix_wp_travel_extras_pro_extras_layout' );
Fire during customer password reset.
Source
File: /inc/class-wp-travel-form-handler.php
Used by: /inc/class-wp-travel-form-handler.php
Parameters
$user
Example:
function prefix_wp_travel_customer_reset_password( $user ) { // Code here. } add_action( 'wp_travel_customer_reset_password', 'prefix_wp_travel_customer_reset_password' );
Fire during customer password reset.
Source
File: /inc/class-wp-travel-form-handler.php
Used by: /inc/class-wp-travel-form-handler.php
Parameters
$errors, $user
Example:
function prefix_validate_password_reset( $errors, $user ) { // Code here. } add_action( 'validate_password_reset', 'prefix_validate_password_reset' );
Fire after updating customer billing details.
Source
File: /inc/class-wp-travel-form-handler.php
Used by: /inc/class-wp-travel-form-handler.php
Parameters
$user_id
Example:
function prefix_wp_travel_save_billing_details( $user_id ) { // Code here. } add_action( 'wp_travel_save_billing_details', 'prefix_wp_travel_save_billing_details' );
Fire after updating customer account details.
Source
File: /inc/class-wp-travel-form-handler.php
Used by: /inc/class-wp-travel-form-handler.php
Parameters
$user->ID
Example:
function prefix_wp_travel__save_account_details( $user->ID ) { // Code here. } add_action( 'wp_travel__save_account_details', 'prefix_wp_travel__save_account_details' );
Fire while handling sending password retrieval email to customer.
Source
File: /inc/class-wp-travel-user-account.php
Used by: /inc/class-wp-travel-user-account.php
Parameters
$errors
Example:
function prefix_lostpassword_post( $errors ) { // Code here. } add_action( 'lostpassword_post', 'prefix_lostpassword_post' );
Fire while handling sending password retrieval email to customer.
Source
File: /inc/class-wp-travel-user-account.php
Used by: /inc/class-wp-travel-user-account.php
Parameters
$user_login
Example:
function prefix_retrieve_password( $user_login ) { // Code here. } add_action( 'retrieve_password', 'prefix_retrieve_password' );
Fire during customer password reset.
Source
File: /inc/class-wp-travel-user-account.php
Used by: /inc/class-wp-travel-user-account.php
Parameters
$user, $new_pass
Example:
function prefix_password_reset( $user, $new_pass ) { // Code here. } add_action( 'password_reset', 'prefix_password_reset' );
Fire after dashboard single booking detail.
Source
File: /inc/helpers.php
Used by: /inc/helpers.php
Parameters
$booking_id, $details
Example:
function prefix_wp_travel_dashboard_booking_after_detail( $booking_id, $details ) { // Code here. } add_action( 'wp_travel_dashboard_booking_after_detail', 'prefix_wp_travel_dashboard_booking_after_detail' );
Hook to add booking time details at booking.
Source
File: /inc/helpers.php
Used by: /inc/helpers.php
Parameters
$booking_id
Example:
function prefix_wp_travel_after_bookings_travel_date( $booking_id ) { // Code here. } add_action( 'wp_travel_after_bookings_travel_date', 'prefix_wp_travel_after_bookings_travel_date' );
Fires before WP Travel post filter.
Source
File: /inc/template-functions.php
Used by: /inc/template-functions.php
Example:
function prefix_wp_travel_before_post_filter() { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_before_post_filter', 'prefix_wp_travel_before_post_filter' );
Fires after WP Travel post filter.
Source
File: /inc/template-functions.php
Used by: /inc/template-functions.php
Example:
function prefix_wp_travel_after_post_filter() { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_after_post_filter', 'prefix_wp_travel_after_post_filter' );
Fires after clearing booking transient.
Active Since v1.0.6
Source
File: /inc/template-functions.php
Used by: /inc/template-functions.php
Example:
function prefix_wp_travel_after_deleting_booking_transient() { // Code here. } add_action( 'wp_travel_after_deleting_booking_transient', 'prefix_wp_travel_after_deleting_booking_transient' );
Fires after itinerary date on frontend.
Active Since v3.0.8
Source
File: /inc/template-functions.php
Used by: /inc/template-functions.php
Parameters
$trip_id, $pricing
Example:
function prefix_wp_travel_action_after_itinerary_date( $trip_id, $pricing ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_action_after_itinerary_date', 'prefix_wp_travel_action_after_itinerary_date' );
Fires after single itinerary select button.
Active Since v1.9.3
Source
File: /inc/template-functions.php
Used by: /inc/template-functions.php
Parameters
$trip_id, $pricing[‘price_key’]
Example:
function prefix_wp_travel_booking_after_select_button( $trip_id, $pricing['price_key'] ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_booking_after_select_button', 'prefix_wp_travel_booking_after_select_button' );
Hooks for additional pricing attributes in a single trip page.
Active Since v3.0.8
Source
File: /inc/template-functions.php
Used by: /inc/template-functions.php
Parameters
$trip_id
Example:
function prefix_wp_travel_action_additional_pricing_attributes( $trip_id ) { // Code here. } add_action( 'wp_travel_action_additional_pricing_attributes', 'prefix_wp_travel_action_additional_pricing_attributes' );
Hook to support WP Travel Tour Extra addon.
Active Since v1.5.8
Source
File: /inc/template-functions.php
Used by: /inc/template-functions.php
Parameters
$pricing_key, $arrival_date
Example:
function prefix_wp_travel_trip_extras( $pricing_key, $arrival_date ) { // See function tour_extras_frontend( $price_key = false, $arrival_date = false ) for reference. } add_action( 'wp_travel_trip_extras', 'prefix_wp_travel_trip_extras' );
Fire after enquiry data save. Currently using to initialize zapier automation.
Active Since v2.0.9
Source
File: /inc/trip-enquiries.php
Used by: /inc/trip-enquiries.php
Parameters
$post_id, $enquery_data
Example:
function prefix_wp_travel_after_enquiry_save( $post_id, $enquery_data ) { // Code here. } add_action( 'wp_travel_after_enquiry_save', 'prefix_wp_travel_after_enquiry_save' );
Fire after enquiry email has been sent.
Source
File: /inc/trip-enquiries.php
Used by: /inc/trip-enquiries.php
Parameters
$admin_email, $customer_email, $formdata, $enquiry_id
Example:
function prefix_wp_travel_after_enquiries_email_sent( $admin_email, $customer_email, $formdata, $enquiry_id ) { // Code here. } add_action( 'wp_travel_after_enquiries_email_sent', 'prefix_wp_travel_after_enquiries_email_sent' );
Fire after the customer account creation.
Source
File: /inc/wp-travel-user-functions.php
Used by: /inc/wp-travel-user-functions.php
Parameters
$customer_id, $new_customer_data, $password_generated
Example:
function prefix_wp_travel_created_customer( $customer_id, $new_customer_data, $password_generated ) { // Code here. } add_action( 'wp_travel_created_customer', 'prefix_wp_travel_created_customer' );
Hook to update current booking inventory data. Fire after deleting booking count transient.
Active Since v2.0.3
Source
File: /inc/admin-helper.php
Used by: /inc/admin-helper.php
Parameters
$booking_id
Example:
function prefix_wp_travel_action_after_trash_booking( $booking_id ) { // Code here. } add_action( 'wp_travel_action_after_trash_booking', 'prefix_wp_travel_action_after_trash_booking' );
Hook to update current booking inventory data. Fire after deleting booking count transient.
Active Sincev2.0.3
Source
File: /inc/admin-helper.php
Used by: /inc/admin-helper.php
Parameters
$booking_id
Example:
function prefix_wp_travel_action_after_untrash_booking( $booking_id ) { // Code here. } add_action( 'wp_travel_action_after_untrash_booking', 'prefix_wp_travel_action_after_untrash_booking' );
Hook to add trip extras fields.
Active Since v2.0.3
Source
File: /inc/admin-helper.php
Used by: /inc/admin-helper.php
Parameters
$post_id, $context, $fetch_key, $table_row
Example:
function prefix_wp_travel_trip_extras_fields( $post_id, $context, $fetch_key, $table_row ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_trip_extras_fields', 'prefix_wp_travel_trip_extras_fields' );
Hook to add options for the tour extra admin section.
Source
File: /inc/admin-helper.php
Used by: /inc/admin-helper.php
Example:
function prefix_wp_travel_extras_pro_single_options() { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_extras_pro_single_options', 'prefix_wp_travel_extras_pro_single_options' );
Hook to display critical admin notices.
Source
File: /inc/admin-notices.php
Used by: /inc/admin-notices.php
Example:
function prefix_wp_travel_critical_admin_notice() { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_critical_admin_notice', 'prefix_wp_travel_critical_admin_notice' );
Hook to display general admin notices.
Source
File: /inc/admin-notices.php
Used by: /inc/admin-notices.php
Example:
function prefix_wp_travel_general_admin_notice() { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_general_admin_notice', 'prefix_wp_travel_general_admin_notice' );
Fire after admin payment detail.
Source
File: /inc/class-admin-metaboxes.php
Used by: /inc/class-admin-metaboxes.php
Parameter
$booking_id, $payment_args
Example:
function prefix_wp_travel_after_payment_detail( $booking_id, $payment_args ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_after_payment_detail', 'prefix_wp_travel_after_payment_detail' );
Fire after saving trip metas.
Source
File: /inc/class-admin-metaboxes.php
Used by: /inc/class-admin-metaboxes.php
Parameter
$post_id
Example:
function prefix_wp_travel_itinerary_extra_meta_save( $post_id ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_itinerary_extra_meta_save', 'prefix_wp_travel_itinerary_extra_meta_save' );
Fire before WP Travel admin setting form.
Source
File: /inc/class-admin-settings.php
Used by: /inc/class-admin-metaboxes.php, /inc/class-network-settings.php
Example:
function prefix_wp_travel_before_admin_setting_form() { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_before_admin_setting_form', 'prefix_wp_travel_before_admin_setting_form' );
Fire after WP Travel admin setting form.
Source
File: /inc/class-admin-settings.php
Used by: /inc/class-admin-metaboxes.php, /inc/class-network-settings.php
Example:
function prefix_wp_travel_after_admin_setting_form() { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_after_admin_setting_form', 'prefix_wp_travel_after_admin_setting_form' );
Fire on WP Travel tabs section.
Active Since v1.9.0
Source
File: /inc/admin/views/tabs/tabs.php
Used by: /inc/admin/views/tabs/tabs.php
Parameter
$key, $args
Example:
function prefix_wp_travel_tabs_content_’$collection_name’_’$key’( $key, $args ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_tabs_content_' . $collection . '_' . $key', 'prefix_wp_travel_tabs_content_’$collection_name’_’$key );
Fire on WP Travel trip cart and checkout tab. Currently using for inventory content.
Active Since v2.0.0
Source
File: /inc/admin/views/tabs/tabs-contents/itineraries/cart-checkout.php
Used by: /inc/admin/views/tabs/tabs-contents/itineraries/cart-checkout.php
Parameter
$args
Example:
function prefix_wp_travel_trip_cart_checkout_tab_content( $args ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_trip_cart_checkout_tab_content', 'prefix_wp_travel_trip_cart_checkout_tab_content’ );
Fire on WP Travel trip download tab. Currently using for download addon content.
Active Since v2.0.0
Source
File: /inc/admin/views/tabs/tabs-contents/itineraries/cart-checkout.php
Used by: /inc/admin/views/tabs/tabs-contents/itineraries/cart-checkout.php
Parameter
$args
Example:
function prefix_wp_travel_trip_downloads_tab_content( $args ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_trip_downloads_tab_content', 'prefix_wp_travel_trip_downloads_tab_content’ );
Fire on WP Travel trip faq tab. Currently using Utilities addon content.
Active Since v2.0.0
Source
File: /inc/admin/views/tabs/tabs-contents/itineraries/faq.php
Used by: /inc/admin/views/tabs/tabs-contents/itineraries/faq.php
Example:
function prefix_wp_travel_utils_itinerary_global_faq_settings() { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_utils_itinerary_global_faq_settings', 'prefix_wp_travel_utils_itinerary_global_faq_settings’ );
Fire on WP Travel trip inventory tab. Currently using Utilities addon content.
Active Sincev2.0.0
Source
File: /inc/admin/views/tabs/tabs-contents/itineraries/inventory.php
Used by:/inc/admin/views/tabs/tabs-contents/itineraries/inventory.php
Parameter
$args
Example:
function prefix_wp_travel_trip_inventory_tab_content( $args ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_trip_inventory_tab_content', 'prefix_wp_travel_trip_inventory_tab_content’ );
Fire before WP Travel itinerary description. Currently using Utilities addon to add itinerary images.
Active Since v1.7.6
Source
File: /inc/admin/views/tabs/tabs-contents/itineraries/itineraries-content.php
Used by: /inc/admin/views/tabs/tabs-contents/itineraries/itineraries-content.php
Parameter
$cnt, $itinerary
Example:
function prefix_wp_travel_itinerary_list_before_description( $cnt, $itinerary ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_itinerary_list_before_description', 'prefix_wp_travel_itinerary_list_before_description’ );
Fire before WP Travel itinerary description repeater. Currently using Utilities addon to add itinerary images.
Active Since v1.7.6
Source
File: /inc/admin/views/tabs/tabs-contents/itineraries/itineraries-content.php
Used by: /inc/admin/views/tabs/tabs-contents/itineraries/itineraries-content.php
Parameter
$uid
Example:
function prefix_wp_travel_itinerary_list_template_before_description( $uid ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_itinerary_list_template_before_description', 'prefix_wp_travel_itinerary_list_template_before_description’ );
Fire in WP Travel trip admin map area.
Active Since v2.0.0
Source
File: /inc/admin/views/tabs/tabs-contents/itineraries/locations.php
Used by: /inc/admin/views/tabs/tabs-contents/itineraries/locations.php
Parameter
$settings, $map_data
Example:
function prefix_wp_travel_admin_map_area( $settings, $map_data ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_admin_map_area', 'prefix_wp_travel_admin_map_area’ );
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’ );
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’ );
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’ );
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’ );
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’ );
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’ );
Fire after WP Travel trip admin trip duration fields.
Source
File: /inc/admin/views/tabs/tabs-contents/itineraries/price.php
Used by: /inc/admin/views/tabs/tabs-contents/itineraries/price.php
Parameter
$args
Example:
function prefix_wp_travel_after_trip_duration_fields( $args ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_after_trip_duration_fields', 'prefix_wp_travel_after_trip_duration_fields’ );
Fire after WP Travel trip admin end date.
Active Since v3.0.7
Source
File: /inc/admin/views/tabs/tabs-contents/itineraries/price.php
Used by: /inc/admin/views/tabs/tabs-contents/itineraries/price.php
Parameter
$args
Example:
function prefix_wp_travel_after_end_date( $args ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_after_end_date', 'prefix_wp_travel_after_end_date’ );
Fire after WP Travel trip admin select a date button.
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, $date_key
Example:
function prefix_wp_travel_price_tab_after_multiple_date( $post_id, $date_key ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_price_tab_after_multiple_date', 'prefix_wp_travel_price_tab_after_multiple_date’ );
Fire after WP Travel trip admin select a date button repeater.
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_price_tab_after_multiple_date_template( $post_id ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_price_tab_after_multiple_date_template', 'prefix_wp_travel_price_tab_after_multiple_date_template’ );
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’ );
Fire after WP Travel trip admin minimum payout percent.
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_price_tab_table_last_row( $post_id ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_itinerary_price_tab_table_last_row', 'prefix_wp_travel_itinerary_price_tab_table_last_row’ );
Fire before WP Travel trip admin global tabs.
Source
File: /inc/admin/views/tabs/tabs-contents/itineraries/tabs.php
Used by: /inc/admin/views/tabs/tabs-contents/itineraries/tabs.php
Parameter
$post_id
Example:
function prefix_wp_travel_itinerary_custom_tabs( $post_id ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_itinerary_custom_tabs', 'prefix_wp_travel_itinerary_custom_tabs’ );
Fire in WP Travel admin addon settings tab.
Source
File: /inc/admin/views/tabs/tabs-contents/settings/addons-settings.php
Used by: /inc/admin/views/tabs/tabs-contents/settings/addons-settings.php
Parameter
$args
Example:
function prefix_wp_travel_addons_setings_tab_fields( $args ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_addons_setings_tab_fields', 'prefix_wp_travel_addons_setings_tab_fields’ );
Fire in WP Travel admin cart and checkout settings tab.
Source
File: /inc/admin/views/tabs/tabs-contents/settings/cart-checkout-settings-global.php
Used by: /inc/admin/views/tabs/tabs-contents/settings/cart-checkout-settings-global.php
Parameter
$args
Example:
function prefix_wp_travel_settings_tab_cart_checkout_fields( $args ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_settings_tab_cart_checkout_fields', 'prefix_wp_travel_settings_tab_cart_checkout_fields’ );
Fire in WP Travel admin debug settings tab.
Active Since v4.0.6
Source
File: /inc/admin/views/tabs/tabs-contents/settings/debug.php
Used by: /inc/admin/views/tabs/tabs-contents/settings/debug.php
Parameter
$args
Example:
function prefix_wp_travel_below_debug_tab_fields( $args ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_below_debug_tab_fields', 'prefix_wp_travel_below_debug_tab_fields’ );
Fire in WP Travel admin email settings tab. Fire before email fields.
Active Since v2.0.0
Source
File: /inc/admin/views/tabs/tabs-contents/settings/email.php
Used by: /inc/admin/views/tabs/tabs-contents/settings/email.php
Parameter
$args
Example:
function prefix_wp_travel_tab_content_before_email( $args ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_tab_content_before_email', 'prefix_wp_travel_tab_content_before_email’ );
Fire in WP Travel admin email settings tab. Fire before booking email templates.
Active Since v2.0.0
Source
File: /inc/admin/views/tabs/tabs-contents/settings/email.php
Used by: /inc/admin/views/tabs/tabs-contents/settings/email.php
Parameter
$args
Example:
function prefix_wp_travel_tab_content_before_booking_tamplate( $args ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_tab_content_before_booking_tamplate', 'prefix_wp_travel_tab_content_before_booking_tamplate’ );
Fire in WP Travel admin email settings tab. Fire before admin booking email subject.
Source
File: /inc/admin/views/tabs/tabs-contents/settings/email.php
Used by: /inc/admin/views/tabs/tabs-contents/settings/email.php
Example:
function prefix_wp_travel_utils_booking_notif() { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_utils_booking_notif', 'prefix_wp_travel_utils_booking_notif’ );
Fire in WP Travel admin email settings tab. Fire before client email template options.
Source
File: /inc/admin/views/tabs/tabs-contents/settings/email.php
Used by: /inc/admin/views/tabs/tabs-contents/settings/email.php
Parameter
$booking_admin_email_settings
Example:
function prefix_wp_travel_multiple_booking_admin_template_settings( $booking_admin_email_settings ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_multiple_booking_admin_template_settings', 'prefix_wp_travel_multiple_booking_admin_template_settings’ );
Fire in WP Travel admin email settings tab. Fire before payment email template options.
Source
File: /inc/admin/views/tabs/tabs-contents/settings/email.php
Used by: /inc/admin/views/tabs/tabs-contents/settings/email.php
Parameter
$booking_client_email_settings
Example:
function prefix_wp_travel_multiple_booking_client_template( $booking_client_email_settings ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_multiple_booking_client_template', 'prefix_wp_travel_multiple_booking_client_template’ );
Fire in WP Travel admin email settings tab. Fire before admin payment email subject.
Source
File: /inc/admin/views/tabs/tabs-contents/settings/email.php
Used by: /inc/admin/views/tabs/tabs-contents/settings/email.php
Example:
function prefix_wp_travel_utils_payment_notif() { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_utils_payment_notif', 'prefix_wp_travel_utils_payment_notif’ );
Fire in WP Travel admin email settings tab. Fire before payment client email template options.
Source
File: /inc/admin/views/tabs/tabs-contents/settings/email.php
Used by: /inc/admin/views/tabs/tabs-contents/settings/email.php
Parameter
$payment_admin_email_settings
Example:
function prefix_wp_travel_multiple_payment_admin_template( $payment_admin_email_settings ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_multiple_payment_admin_template', 'prefix_wp_travel_multiple_payment_admin_template’ );
Fire in WP Travel admin email settings tab. Fire after payment client email template options.
Source
File: /inc/admin/views/tabs/tabs-contents/settings/email.php
Used by: /inc/admin/views/tabs/tabs-contents/settings/email.php
Parameter
$payment_client_email_settings
Example:
function prefix_wp_travel_multiple_payment_client_template( $payment_client_email_settings ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_multiple_payment_client_template', 'prefix_wp_travel_multiple_payment_client_template’ );
Fire in WP Travel admin email settings tab. Fire before enquiry admin email subject.
Source
File: /inc/admin/views/tabs/tabs-contents/settings/email.php
Used by: /inc/admin/views/tabs/tabs-contents/settings/email.php
Example:
function prefix_wp_travel_utils_enquiries_notif() { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_utils_enquiries_notif', 'prefix_wp_travel_utils_enquiries_notif’ );
Fire in WP Travel admin email settings tab. Fire after enquiry admin email template options.
Source
File: /inc/admin/views/tabs/tabs-contents/settings/email.php
Used by: /inc/admin/views/tabs/tabs-contents/settings/email.php
Example:
function prefix_wp_travel_enquiry_customer_email_settings() { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_enquiry_customer_email_settings', 'prefix_wp_travel_enquiry_customer_email_settings’ );
Fire in WP Travel admin email settings tab. Fire after enquiry email template options.
Active Since v1.8.0
Source
File: /inc/admin/views/tabs/tabs-contents/settings/email.php
Used by: /inc/admin/views/tabs/tabs-contents/settings/email.php
Parameters
$tab, $args
Example:
function prefix_wp_travel_email_template_settings_after_enquiry( $tab, $args ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_email_template_settings_after_enquiry', 'prefix_wp_travel_email_template_settings_after_enquiry’ );
Fire in WP Travel admin field editor settings tab.
Source
File: /inc/admin/views/tabs/tabs-contents/settings/field-editor.php
Used by: /inc/admin/views/tabs/tabs-contents/settings/field-editor.php
Parameters
$args
Example:
function prefix_wp_travel_settings_tab_field_editor_fields( $args ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_settings_tab_field_editor_fields', 'prefix_wp_travel_settings_tab_field_editor_fields’ );
Fire before WP Travel admin google map api key field in general tab.
Source
File: /inc/admin/views/tabs/tabs-contents/settings/general.php
Used by: /inc/admin/views/tabs/tabs-contents/settings/general.php
Parameters
$tab, $args
Example:
function prefix_wp_travel_settings_after_currency( $tab, $args ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( 'wp_travel_settings_after_currency', 'prefix_wp_travel_settings_after_currency’ );
Fire after WP Travel admin dashboard page option in general tab.
Active Since v1.8.0
Source
File: /inc/admin/views/tabs/tabs-contents/settings/general.php
Used by: /inc/admin/views/tabs/tabs-contents/settings/general.php
Parameters
$tab, $args
Example:
function prefix_wp_travel_after_page_settings( $tab, $args ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( ‘wp_travel_after_page_settings', 'prefix_wp_travel_after_page_settings’ );
Fire before WP Travel admin itinerary tab fields.
Source
File: /inc/admin/views/tabs/tabs-contents/settings/itinerary.php
Used by: /inc/admin/views/tabs/tabs-contents/settings/itinerary.php
Parameters
$args
Example:
function prefix_wp_travel_tab_content_before_trips( $args ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( ‘wp_travel_tab_content_before_trips', 'prefix_wp_travel_tab_content_before_trips’ );
Fire after WP Travel admin itinerary tab fields.
Source
File: /inc/admin/views/tabs/tabs-contents/settings/itinerary.php
Used by: /inc/admin/views/tabs/tabs-contents/settings/itinerary.php
Parameters
$args
Example:
function prefix_wp_travel_tab_content_after_trips( $args ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( ‘wp_travel_tab_content_after_trips', 'prefix_wp_travel_tab_content_after_trips’ );
Fire in WP Travel admin license tab.
Source
File: /inc/admin/views/tabs/tabs-contents/settings/license.php
Used by: /inc/admin/views/tabs/tabs-contents/settings/license.php
Parameters
$args
Example:
function prefix_wp_travel_license_tab_fields( $args ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( ‘wp_travel_license_tab_fields', 'prefix_wp_travel_license_tab_fields’ );
Fire in WP Travel admin misc. options tab.
Source
File: /inc/admin/views/tabs/tabs-contents/settings/misc-options-global.php
Used by: /inc/admin/views/tabs/tabs-contents/settings/misc-options-global.php
Parameters
$args
Example:
function prefix_wp_travel_settings_tab_misc_options_fields( $args ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( ‘wp_travel_settings_tab_misc_options_fields', 'prefix_wp_travel_settings_tab_misc_options_fields’ );
Fire before WP Travel admin minimum partial payout.
Active Since v3.0.7
Source
File: /inc/admin/views/tabs/tabs-contents/settings/payment.php
Used by: /inc/admin/views/tabs/tabs-contents/settings/payment.php
Parameters
$settings
Example:
function prefix_wp_travel_before_minimum_partial_payout( $settings ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( ‘wp_travel_before_minimum_partial_payout', 'prefix_wp_travel_before_minimum_partial_payout’ );
Fire after WP Travel admin minimum partial payout.
Active Since v3.0.7
Source
File: /inc/admin/views/tabs/tabs-contents/settings/payment.php
Used by: /inc/admin/views/tabs/tabs-contents/settings/payment.php
Parameters
$settings
Example:
function prefix_wp_travel_after_minimum_partial_payout( $settings ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( ‘wp_travel_after_minimum_partial_payout', 'prefix_wp_travel_after_minimum_partial_payout’ );
Hook to support custom tabs.
Source
File: /inc/admin/views/tabs/tabs-contents/settings/tabs-global.php
Used by: /inc/admin/views/tabs/tabs-contents/settings/tabs-global.php
Example:
function prefix_wp_travel_custom_global_tabs() { // Code here. } add_action( ‘wp_travel_custom_global_tabs', 'prefix_wp_travel_custom_global_tabs’ );
Fire in WP Travel admin faq tab.
Source
File: /inc/admin/views/tabs/tabs-contents/settings/utilities-faq-global.php
Used by: /inc/admin/views/tabs/tabs-contents/settings/utilities-faq-global.php
Parameters
$args
Example:
function prefix_wp_travel_settings_tab_faq_fields( $args ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( ‘wp_travel_settings_tab_faq_fields', 'prefix_wp_travel_settings_tab_faq_fields’ );
Fire in WP Travel tour extras general tab.
Active Since v2.0.4
Source
File: /inc/admin/views/tabs/tabs-contents/tour-extras/tour-extras-gallery.php
Used by: /inc/admin/views/tabs/tabs-contents/tour-extras/tour-extras-gallery.php
Example:
function prefix_wp_travel_tour_extras_gallery_tab_content() { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( ‘wp_travel_tour_extras_gallery_tab_content', 'prefix_wp_travel_tour_extras_gallery_tab_content’ );
Fire at the end of WP Travel tour extras general tab.
Source
File: /inc/admin/views/tabs/tabs-contents/tour-extras/tour-extras-general.php
Used by: /inc/admin/views/tabs/tabs-contents/tour-extras/tour-extras-general.php
Example:
function prefix_wp_travel_extras_pro_options() { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( ‘wp_travel_extras_pro_options', 'prefix_wp_travel_extras_pro_options’ );
Fire in the WP Travel mini cart before coupon discount field.
Active Since v3.0.0
Source
File: /inc/cart/cart-mini.php
Used by: /inc/cart/cart-mini.php
Parameter
$trip_extras, $cart_id, $trip_id, $price_key
Example:
function prefix_wp_travel_tour_extras_mini_cart_block( $trip_extras, $cart_id, $trip_id, $price_key ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( ‘wp_travel_tour_extras_mini_cart_block', 'prefix_wp_travel_tour_extras_mini_cart_block’ );
Fire in the WP Travel checkout before checkout fields.
Source
File: /inc/cart/checkout.php
Used by: /inc/cart/checkout.php
Example:
function prefix_wp_travel_action_before_checkout_field() { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( ‘wp_travel_action_before_checkout_field', 'prefix_wp_travel_action_before_checkout_field’ );
Fire in the WP Travel checkout before billing fields.
Source
File: /inc/cart/checkout.php
Used by: /inc/cart/checkout.php
Example:
function prefix_wp_travel_action_before_billing_info_field() { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( ‘wp_travel_action_before_billing_info_field', 'prefix_wp_travel_action_before_billing_info_field’ );
Fire in the WP Travel checkout before payment fields.
Source
File: /inc/cart/checkout.php
Used by: /inc/cart/checkout.php
Example:
function prefix_wp_travel_action_before_payment_info_field() { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( ‘wp_travel_action_before_payment_info_field', 'prefix_wp_travel_action_before_payment_info_field’ );
Fire in the WP Travel checkout after payment fields.
Source
File: /inc/cart/checkout.php
Used by: /inc/cart/checkout.php
Example:
function prefix_wp_travel_action_after_payment_info_field() { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( ‘wp_travel_action_after_payment_info_field', 'prefix_wp_travel_action_after_payment_info_field’ );
Fire before WP Travel checkout page wrap.
Active Since v4.0.7
Source
File: /inc/cart/class-checkout.php
Used by: /inc/cart/class-checkout.php
Example:
function prefix_wp_travel_before_checkout_page_wrap() { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( ‘wp_travel_before_checkout_page_wrap', 'prefix_wp_travel_before_checkout_page_wrap’ );
Fire before WP Travel payment processing.
Source
File: /inc/gateways/bank-deposit/bank-deposit.php
Used by: /inc/gateways/bank-deposit/bank-deposit.php, /inc/gateways/standard-paypal/class-wp-travel-gateway-paypal-request.php
Parameters
$booking_id
Example:
function prefix_wt_before_payment_process( $booking_id ) { // Code here. } add_action( ‘wt_before_payment_process', 'prefix_wt_before_payment_process’ );
Fire after WP Travel payment status update.
Source
File: /inc/gateways/bank-deposit/bank-deposit.php
Used by: /inc/gateways/bank-deposit/bank-deposit.php, /inc/gateways/standard-paypal/paypal-functionst.php
Parameters
$booking_id
Example:
function prefix_wp_travel_after_successful_payment( $booking_id ) { // Code here. } add_action( ‘wp_travel_after_successful_payment', 'prefix_wp_travel_after_successful_payment’ );
Fire during WP Travel listen for $_GET request from PayPal IPN.
Source
File: /inc/gateways/standard-paypal/paypal-functionst.php
Used by: /inc/gateways/standard-paypal/paypal-functionst.php
Example:
function prefix_wp_travel_verify_paypal_ipn() { // Code here. } add_action( ‘wp_travel_verify_paypal_ipn', 'prefix_wp_travel_verify_paypal_ipn’ );
Fire before WP Travel payment email sent to admin & customer.
Source
File: /inc/payments/wp-travel-payments.php
Used by: /inc/payments/wp-travel-payments.php
Parameters
$booking_id
Example:
function prefix_wp_travel_before_payment_email_send() { // Code here. } add_action( ‘wp_travel_before_payment_email_send', 'prefix_wp_travel_before_payment_email_send’ );
Hook to handle multiple payment emails.
Source
File: /inc/payments/wp-travel-payments.php
Used by: /inc/payments/wp-travel-payments.php
Parameters
$booking_id
Example
function prefix_wp_travel_multiple_payment_emails() { // Code here. } add_action( ‘wp_travel_multiple_payment_emails', 'prefix_wp_travel_multiple_payment_emails’ );
Fire after payment email sent. Hook to handle invoice.
Active Since v3.0.6
Source
File: /inc/payments/wp-travel-payments.php
Used by: /inc/payments/wp-travel-payments.php
Parameters
$booking_id, $email_data, $email_tags
Example:
function prefix_wp_travel_after_payment_email_sent( $booking_id, $email_data, $email_tags ) { // Code here. } add_action( ‘wp_travel_after_payment_email_sent', 'prefix_wp_travel_after_payment_email_sent’ );
Hook to support multiple times in cart.
Active Since v3.0.8
Source
File: /templates/content-cart.php
Used by: /templates/content-cart.php
Parameters
$trip, $trip_id, $price_key, $trip[‘arrival_date’]
Example:
function prefix_wp_travel_multiple_time_cart_page( $trip, $trip_id, $price_key, $trip['arrival_date'] ) { // Code here. } add_action( ‘wp_travel_multiple_time_cart_page', 'prefix_wp_travel_multiple_time_cart_page’ );
Fire after date and time in cart.
Active Since v3.0.8
Source
File: /templates/content-cart.php
Used by: /templates/content-cart.php
Parameters
$trip, $trip_id
Example:
function prefix_wp_travel_action_cart_after_date( $trip, $trip_id ) { // Code here. } add_action( ‘wp_travel_action_cart_after_date', 'prefix_wp_travel_action_cart_after_date’ );
Fire before product subtotal in cart.
Active Since v3.0.4
Source
File: /templates/content-cart.php
Used by: /templates/content-cart.php
Parameters
$args
Example:
function prefix_wp_travel_cart_before_product_subtotal( $args ) { // Code here. } add_action( ‘wp_travel_cart_before_product_subtotal', 'prefix_wp_travel_cart_before_product_subtotal’ );
Hook to support tour extras in cart.
Source
File: /templates/content-cart.php
Used by: /templates/content-cart.php
Parameters
$trip_extras, $cart_id, $trip_id
Example:
function prefix_wp_travel_tour_extras_cart_block( $trip_extras, $cart_id, $trip_id ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( ‘wp_travel_tour_extras_cart_block', 'prefix_wp_travel_tour_extras_cart_block’ );
Hook to show the default pricing list type in the booking tab frontend.
Source
File: /templates/content-pricing-options.php
Used by: /templates/content-pricing-options.php
Parameters
$trip_id
Example:
function prefix_wp_travel_booking_default_princing_list( $trip_id ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( ‘wp_travel_booking_default_princing_list', 'prefix_wp_travel_booking_default_princing_list’ );
Hook to show the departure list type in the booking tab frontend.
Source
File: /templates/content-pricing-options.php
Used by: /templates/content-pricing-options.php
Parameters
$trip_id
Example:
function prefix_wp_travel_booking_fixed_departure_list( $trip_id ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( ‘wp_travel_booking_fixed_departure_list', 'prefix_wp_travel_booking_fixed_departure_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’ );
Fire before comment meta on review.
Source
File: /templates/review.php
Used by: /templates/review.php
Parameters
$comment
Example:
function prefix_wp_travel_review_before_comment_meta( $comment ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( ‘wp_travel_review_before_comment_meta', 'prefix_wp_travel_review_before_comment_meta’ );
Fire before user account edit form.
Source
File: /templates/account/form-edit-account.php
Used by: /templates/account/form-edit-account.php
Example:
function prefix_wp_travel_before_edit_account_form() { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( ‘wp_travel_before_edit_account_form', 'prefix_wp_travel_before_edit_account_form’ );
Fire inside user account edit form but before first name field.
Source
File: /templates/account/form-edit-account.php
Used by: /templates/account/form-edit-account.php
Example:
function prefix_wp_travel_edit_account_form_start() { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( ‘wp_travel_edit_account_form_start', 'prefix_wp_travel_edit_account_form_start’ );
Fire before the user account edit save changes button.
Source
File: /templates/account/form-edit-account.php
Used by: /templates/account/form-edit-account.php
Example:
function prefix_wp_travel_edit_account_form() { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( ‘wp_travel_edit_account_form', 'prefix_wp_travel_edit_account_form’ );
Fire after the user account edit save changes button.
Source
File: /templates/account/form-edit-account.php
Used by: /templates/account/form-edit-account.php
Example
function prefix_wp_travel_edit_account_form_end() { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( ‘wp_travel_edit_account_form_end', 'prefix_wp_travel_edit_account_form_end’ );
Fire after the user account edit form.
Source
File: /templates/account/form-edit-account.php
Used by: /templates/account/form-edit-account.php
Example:
function prefix_wp_travel_after_edit_account_form() { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( ‘wp_travel_after_edit_account_form', 'prefix_wp_travel_after_edit_account_form’ );
Fire before the billing edit form.
Source
File: /templates/account/form-edit-billing.php
Used by: /templates/account/form-edit-billing.php
Example:
function prefix_wp_travel_before_edit_billing_form() { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( ‘wp_travel_before_edit_billing_form', 'prefix_wp_travel_before_edit_billing_form’ );
Fire inside the billing edit form but before address field.
Source
File: /templates/account/form-edit-billing.php
Used by: /templates/account/form-edit-billing.php
Example:
function prefix_wp_travel_edit_billing_form_start() { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( ‘wp_travel_edit_billing_form_start', 'prefix_wp_travel_edit_billing_form_start’ );
Fire before billing save changes button.
Source
File: /templates/account/form-edit-billing.php
Used by: /templates/account/form-edit-billing.php
Example:
function prefix_wp_travel_edit_billing_form() { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( ‘wp_travel_edit_billing_form', 'prefix_wp_travel_edit_billing_form’ );
Fire after billing save changes button.
Source
File: /templates/account/form-edit-billing.php
Used by: /templates/account/form-edit-billing.php
Example:
function prefix_wp_travel_edit_billing_form() { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( ‘wp_travel_edit_billing_form', 'prefix_wp_travel_edit_billing_form’ );
Fire after billing edit form.
Source
File: /templates/account/form-edit-billing.php
Used by: /templates/account/form-edit-billing.php
Example:
function prefix_wp_travel_after_edit_billing_form() { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( ‘wp_travel_after_edit_billing_form', 'prefix_wp_travel_after_edit_billing_form’ );
Fire after user registration form password.
Source
File: /templates/account/form-login.php
Used by: /templates/account/form-login.php
Example:
function prefix_wp_travel_after_registration_form_password() { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( ‘wp_travel_after_registration_form_password', 'prefix_wp_travel_after_registration_form_password’ );
Fire before user reset password button.
Source
File: /templates/account/form-lostpassword.php
Used by: /templates/account/form-lostpassword.php
Example:
function prefix_wp_travel_lostpassword_form() { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( ‘wp_travel_lostpassword_form', 'prefix_wp_travel_lostpassword_form’ );
Fire before save button of reset password form.
Source
File: /templates/account/form-reset-password.php
Used by: /templates/account/form-reset-password.php
Example:
function prefix_wp_travel_resetpassword_form() { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( ‘wp_travel_resetpassword_form', 'prefix_wp_travel_resetpassword_form’ );
Fire after account info in user dashboard.
Source
File: /templates/account/tab-content/dashboard.php
Used by: /templates/account/tab-content/dashboard.php
Example:
function prefix_wp_travel_user_dashboard_after_account_info() { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( ‘wp_travel_user_dashboard_after_account_info', 'prefix_wp_travel_user_dashboard_after_account_info’ );
Fire before WP Travel trip title.
Source
File: /templates/shortcode/itinerary-item.php
Used by: /templates/shortcode/itinerary-item.php
Parameters
get_the_ID()
Example:
function prefix_wp_travel_before_item_title( $post_id ) { esc_html_e( ‘This is content added using this hook’, ‘text-domain’ ); } add_action( ‘wp_travel_before_item_title', 'prefix_wp_travel_before_item_title’ );
Deprecated On v4.3.5
Source
File: /inc/booking-functions.php
Used by: /inc/booking-functions.php
Hook Replaced By
‘wp_travel_trip_inventory’
Deprecated On v4.3.5
Source
File: /inc/helpers.php
Used by: /inc/helpers.php
Hook Replaced By
‘wp_travel_after_bookings_travel_date’
Deprecated On v2.0.4
Source
File: /inc/template-functions.php
Used by: /inc/template-functions.php
Hook Replaced By
‘wp_travel_single_trip_after_price’
Active From v1.0.4
Deprecated On v2.0.4
Source
File: /inc/template-functions.php
Used by: /inc/template-functions.php
Hook Replaced By
‘wp_travel_single_trip_meta_list’
Active From v1.0.4
Deprecated On v2.0.4
Source
File: /inc/template-functions.php
Used by: /inc/template-functions.php
Hook Replaced By
‘wp_travel_single_trip_meta_list’
Active From v1.0.4
Deprecated On v2.0.4
Source
File: /inc/template-functions.php
Used by: /inc/template-functions.php
Hook Replaced By
‘wp_travel_single_trip_after_booknow’
Deprecated On v2.0.4
Source
File: /inc/admin/views/tabs/tabs.php
Used by: /inc/admin/views/tabs/tabs.php
Hook Replaced By
‘wp_travel_tabs_content_’ . $collection . ‘_’ . $key’
Deprecated On v2.0.4
Source
File: /inc/admin/views/tabs/tab-contents/settings/payment.php
Used by: /inc/admin/views/tabs/tab-contents/settings/payment.php
Hook Replaced By
‘wp_travel_payment_gateway_fields_{$gateway }’
Deprecated On v2.0.4
Source
File: /templates/content-archive-itineraries.php
Used by: /templates/content-archive-itineraries.php
Hook Replaced By
‘wp_travel_before_archive_content_title’
Deprecated On v4.3.5
Source
File: /templates/content-pricing-options.php
Used by: /templates/content-pricing-options.php
Hook Replaced By
‘wp_travel_booking_default_princing_list’
Deprecated On v4.3.5
Source
File: /templates/content-pricing-options.php
Used by: /templates/content-pricing-options.php
Hook Replaced By
‘wp_travel_booking_fixed_departure_list’
Active From v1.0.4
Deprecated On v2.0.4
Source
File: /templates/content-single-itineraries.php
Used by: /templates/content-single-itineraries.php
Hook Replaced By
‘wp_travel_before_single_title’
Active From v1.0.4
Deprecated On v2.0.4
Source
File: /templates/content-single-itineraries.php
Used by: /templates/content-single-itineraries.php
Hook Replaced By
‘wp_travel_single_trip_after_title’
Active From v1.0.4
Deprecated On v2.0.4
Source
File: /templates/content-single-itineraries.php
Used by: /templates/content-single-itineraries.php
Hook Replaced By
‘wp_travel_single_trip_after_header’
Active From v1.0.4
Deprecated On v2.0.4
Source
File: /templates/shortcode/itinerary-item.php
Used by: /templates/shortcode/itinerary-item.php
Hook Replaced By
‘wp_travel_before_item_titler’
Below given is the list of constants of WP Travel plugin :
- WP_TRAVEL_PLUGIN_FILE
- WP_TRAVEL_ABSPATH
- WP_TRAVEL_PLUGIN_BASENAME
- WP_TRAVEL_PLUGIN_PATH
- WP_TRAVEL_TEMPLATE_PATH
- WP_TRAVEL_VERSION
All the templates file that is within the templates folder of the plugin WP Travel can be overridden. You can override and modify the template file as per your requirement.
How to override the template file?
Here are the steps that you can follow to override the template file of the plugin.
Step 1: Create the child theme of your current theme.
Step 2: Create the folder “wp-travel” in the child theme.
Step 3: Create the file within the folder “wp-travel” with the same name that you want to override.
Step 4: Finally you can override the file as per your requirement.
Note: The path that you need to follow to override the child theme is mentioned in the header of each template file.
With the WP Travel version (1.3.7) , new feature “WP travel dashboard” has been introduced.
For this feature, multiple email template has been added to the plugin folder which can be override uisng the child theme.
For example, to override the email template “customer-lost-password.php” at first you need to create the child theme.
To know about the process for creating the child theme please refer to below given link:
The very first step after creating the child theme is to create the folder “wp-travel” in your child theme. Inside the folder “wp travel” create another folder “emails“. Now finally create the file “customer-lost-password.php” inside the folder “emails“.
Now copy the content of “customer-lost-password.php” file from parent wp travel plugin folder by going to wp-travel> templates > emails > customer-lost-password.php. After this begin to modify the file as per your requirement through child theme.
Suppose if you want to change the original message that appears in the email for the lost password. You can do so by changing the text through the child theme.
Original file:
After overriding the email template through the child theme.
For example, if you want to override the “single-itineraries.php” file then please follow below-given steps.
Step 1: Create the child theme of your current theme.
Step 2: Create the folder “wp-travel” in the child theme.
Step 3: Create the file “single-itineraries.php” within the folder “wp-travel” .
Step 4: Edit the code inside the file “single-itineraries.php” as per your requirement.
Folder and file structure:
File that you need to override: