Search Documentation

WP Travel Developer Documentation

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

Filter :wp_travel_registered_scripts

WP Travel registered scripts for frontend.

Source

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

Parameters
$assets

Example:

function prefix_wp_travel_registered_scripts( $assets ) {
    $assets[‘scripts’][‘custom_scripts’] = ‘Enqueue part here’;
    return $assets;
}
add_filter( 'wp_travel_registered_scripts', 'prefix_wp_travel_registered_scripts' );
Was this article helpful to you? Yes No

How can we help?