Search Documentation

WP Travel Developer Documentation

  1. Home
  2. Docs
  3. WP Travel Developer Documentation
  4. Filters Associated With Date
  5. Filter :wptravel_trip_dates

Filter :wptravel_trip_dates

This filter is used to modify trip dates of specific trip or all trips.

Source

File: wp-travel/core/helpers/trip-dates.php

Parameters
$dates, $trip_id

Example:

add_filter( 'wptravel_trip_dates', function( $dates, $trip_id ) {
	// Your customized Dates array here. 
    // Note: Only fixed departure date will work here.
	return $dates;
}, 10, 2 );
Was this article helpful to you? Yes No

How can we help?