If you want to rename the ‘From’ and ‘To’ label under Trip Duration in the WP Travel filter widget then worry not, WP Travel plugin provides the feature regarding renaming ‘From’ and ‘To’ label under Trip Duration in WP Travel filter widget using filter code as per your requirement.

To rename the above-mentioned labels, you have to add the following given code in the functions.php file of your child theme.

function wp_travel_customized_strings( $fields ) {
    if ( isset( $fields['trip_dates']['default'][0]['label'] ) ) {
        $fields['trip_dates']['default'][0]['label'] = 'your from label';
    }
    if ( isset( $fields['trip_dates']['default'][1]['label'] ) ) {
        $fields['trip_dates']['default'][1]['label'] = 'your to label';
    }
    return $fields;
}
add_filter( 'wp_travel_search_filter_widget_form_fields', 'wp_travel_customized_strings' );

For detailed assistance regarding creating a child theme, please refer link.

Before:

After:

Also, if you are thinking to remove the End Date (To section) in the filter widget under Trip Duration then worry not, WP Travel plugin provides the feature regarding removing the End Date (To section) section in the filter widget under Trip Duration using filter code.

To remove the End Date (To section) section, you have to add the following given code in the functions.php file of your child theme.

function wptravel_customized_show_end_date_fields() 
   {
         
      return false;

    }

add_filter( 'wp_travel_booking_show_end_date', 'wptravel_customized_show_end_date_fields' );

Before:

After:

If you have any queries/confusions then please submit it to our Contact page.