su/assets/js

The shortcodes-ultimate su/assets/js hook.

Published Date - February 15, 2021

Description

$assets['js'] = array_unique( ( array ) apply_filters( 'su/assets/js', ( array ) array_unique( $assets['js'] ) ) );

Parameters

  1. $ array_unique


Usage

The following example is for adding a hook callback.

// define the su/assets/js callback 
function custom_su_assets_js( $ array_unique ){ 
   //custom code here
    return $ array_unique
} 

//add the action 
add_filter('su/assets/js', 'custom_su/assets/js', 10, 1)

Defined

The filter is defined in the following location(s).

shortcodes-ultimate/inc/core/assets.php

$assets['js'] = array_unique( ( array ) apply_filters( 'su/assets/js', ( array ) array_unique( $assets['js'] ) ) );