Filters Associated With Post Types

Filter: wp_travel_trip_type_post_types #

WP Travel itinerary types taxonomy object type.

Source

File: /inc/class-taxonomies.php
Used by: /inc/class-taxonomies.php

Parameters
$obj_type

Example:

function prefix_wp_travel_trip_type_post_types( $obj_type ) {
    return $obj_type[‘CUSTOM_POST_TYPE’];
}
add_filter( 'wp_travel_trip_type_post_types', 'prefix_wp_travel_trip_type_post_types' );

Filter: wp_travel_destinations_post_types #

WP Travel travel locations taxonomy object type.

Source

File: /inc/class-taxonomies.php
Used by: /inc/class-taxonomies.php

Parameters
$obj_type

Example:

function prefix_wp_travel_destinations_post_types( $obj_type ) {
    return $obj_type[‘CUSTOM_POST_TYPE’];
}
add_filter( 'wp_travel_destinations_post_types', 'prefix_wp_travel_destinations_post_types' );

Filter : wp_travel_kewords_post_types #

WP Travel travel keywords taxonomy object type.

Source

File: /inc/class-taxonomies.php
Used by: /inc/class-taxonomies.php

Parameters
$obj_type

Example:

function prefix_wp_travel_kewords_post_types( $obj_type ) {
    return $obj_type[‘CUSTOM_POST_TYPE’];
}
add_filter( 'wp_travel_kewords_post_types', 'prefix_wp_travel_kewords_post_types' );

Filter: wp_travel_activity_post_types #

WP Travel activity taxonomy object type.

Source

File: /inc/class-taxonomies.php
Used by: /inc/class-taxonomies.php

Parameters
$obj_type

Example:

function prefix_wp_travel_activity_post_types( $obj_type ) {
    return $obj_type[‘CUSTOM_POST_TYPE’];
}
add_filter( 'wp_travel_activity_post_types', 'prefix_wp_travel_activity_post_types' );