Search Documentation

WP Travel Developer Documentation

  1. Home
  2. Docs
  3. WP Travel Developer Documentation
  4. Filters
  5. Filter :wp_travel_enqueue_single_assets

Filter :wp_travel_enqueue_single_assets

Filter for enqueue assets if true.

Source

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

Parameters
$is_wp_travel_single_pages, $trip_id

Example:

function prefix_wp_travel_enqueue_single_assets( $is_wp_travel_single_pages, $trip_id ) {
    $is_wp_travel_single_pages = is_singular(‘YOUR CUSTOM POST TYPES’);
    return $is_wp_travel_single_pages;
}
add_filter( 'wp_travel_enqueue_single_assets', 'prefix_wp_travel_enqueue_single_assets', 12, 2 );
Was this article helpful to you? Yes No

How can we help?