To change the default trip code that is generated by the plugin you can use the  filter given below:


To execute this you need to activate the child theme. You can create the child theme manually or simply create the child theme using the plugin given below:

After activating the child theme in your child theme functions.php add the below-given code.

add_action( 'init', function() {

   function wp_travel_child_change_trip_code( $code, $trip_id ) {
        return 'YOUR TRIP CODE  ' . $trip_id;
   add_filter( 'wp_travel_trip_code','wp_travel_child_change_trip_code', 10, 2);
} );

Here replace ‘YOUR TRIP CODE” with your trip code. Each trip will have the unique id behind it but will have the same code that you enter here.

After adding filter code:

Note: This filter code can only be used with WP Travel free plugin.

If you WP Travel Pro user then you can change the trip code manually, through the admin dashboard by going through Admin Panel > Trips > All Trips > Individual Trips > Trip Options > Itinerary > Trip code.

Also, if you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on FacebookInstagram, and Twitter.

Further, if you have any queries, please submit them to our Contact page.

create your travel site within minutes by ,buy wptravel pro