WP Travel plugin allows you to easily rename the β€˜Trip code’ label on the single trip page using a simple filter. This feature is especially useful if you want to personalize the terminology to better match your brand or user preferences.

To rename the text β€˜Trip code’, simply add the following code to the functions.php file of your child theme:

function wp_travel_customized_trip_code_label( $strings ) {

    $strings['trip_code'] = 'Your trip code';
    return $strings;
	
 }

add_filter( 'wp_travel_strings', 'wp_travel_customized_trip_code_label' );

ou can change 'Your trip code' to any label you prefer, such as 'Tour ID', 'Booking Code', etc.

If you’re unfamiliar with how to create a child theme, we’ve got you covered. Follow this guide to create a child theme

rename text trip code

Also, if you want to learn more about the filter hook that is used to rename the strings available in the WP Travel plugin, please once refer specific hook page.

Check the WP Travel documentation to learn more about configurations, modules, payments, and shortcodes.

Your feedback helps us improve. Feel free to share your thoughts!

Need assistance? Contact our support team, join our Facebook community, and subscribe to our YouTube Channel for video tutorials.

You can also find us on Facebook, Instagram, LinkedIn, TikTok, and X. Thank you for choosing WP Travel.

If you are a WP Travel Free user thinking about upgrading to Pro, simply click on the banner below.

Get WP Travel Pro