Search Documentation

WP Travel Developer Documentation

  1. Home
  2. Docs
  3. WP Travel Developer Documentation
  4. Filters Associated With Post Types
  5. Filter :wp_travel_activity_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' );
Was this article helpful to you? Yes No

How can we help?