Description
Default jQuery script file filter.We try to find the script URL ourselves.
Usage
$string = bw_jquery_script_url( $script_url, $script, $debug );Parameters
- $script_url
- ( string ) required – Starts out as the script name
- $script
- ( string ) required – The script name, excluding jquery. prefix
- $debug
- ( bool ) required – true when we want to load a debuggable version
Returns
string The string URL or nullSource
File name: oik/shortcodes/oik-jquery.phpLines:
1 to 10 of 10
function bw_jquery_script_url( $script_url, $script, $debug ) { $script_path = bw_jquery_script_plugin_file( $script, $debug ); if ( $script_path ) { $script_url = plugin_dir_url( $script_path ) . basename( $script_path ); } else { $script_url = null; } bw_trace2( $script_url, "script_url", true, BW_TRACE_VERBOSE ); return $script_url; }View on GitHub View on Trac
Called by
Calls
1 to 3 of 3
- bw_jquery_filename() – Determine whether or not the jQuery file is a .pack or .min or .dev or something else
- bw_jquery_script_plugin_file() – Determine a potential source for a script file and whether or not it’s a .pack or .min file
- oik_path() – Return the path of the oik base plugin or any particular file
