1. Home
  2. Documentations
  3. Developer Documentation
  4. Filters
  5. wp_travel_trip_code

wp_travel_trip_code

Filter Hook:

wp_traval_trip_code

Description: This filter hook is used to modify the tripcode.

Example:

Modifying the existing trip code of the particular itinerary using the itinerary id.

function wp_travel_child_change_trip_code( $trip_code, $post_id ){
	return 'ID HERE'. $post_id;
}
add_filter('wp_travel_trip_code','wp_travel_child_change_trip_code', 10, 2);

How can we help?