su_query_asset

The shortcodes-ultimate su query asset function.

Published Date - February 15, 2021

Description

Helper function to add asset to the query

su_query_asset( $type, $handle );

Parameters

  1. $type

  2. $handle


Usage

The following example is for adding a hook callback.

if ( !function_exists( 'su_query_asset' ) ) {
    require_once ABSPATH . PLUGINDIR . 'shortcodes-ultimateshortcodes-ultimate/inc/core/assets.php';
}

// The input(s). 
$type = null;
$handle = null;

// NOTICE! Understand what this does before running.
$result = su_query_asset( $type, $handle );
            

Defined

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

shortcodes-ultimate/inc/core/assets.php

function su_query_asset( $type, $handle ) {
	Su_Assets::add( $type, $handle );
}