If you are willing to rename the β€˜Search’, ‘Trip Type‘, ‘Location‘ labels displaying in the search widget available in WP Travel plugin, please add the following given code in the functions.php file of your child theme.

Code to Rename Search Widget Fields

Add the following code to the functions.php file of your child theme:

function customized_strings( $strings ) {
    $strings['trip_type'] = __( 'Your Trip type', 'wp-travel' );
    $strings['search'] = __( 'Your Text', 'wp-travel' );
    $strings['location'] = __( 'Your Location', 'wp-travel' );
    return $strings;
}
add_filter( 'wp_travel_search_filter_label_strings', 'customized_strings' );

You can replace 'Your Trip Type', 'Your Text', and 'Your Location' with your own custom labels.

rename field's name

For detail information regarding how to create a child theme, please refer to our Knowledgebase.

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