asp_load_js
Hook to prevent the plugin javascript files loading
1
apply_filters('asp_load_js', $stop);
Copied!

Parameters

  • $stop - when true, the JS files are not loaded
1
add_filter( 'asp_load_js', 'asp_stop_load_js', 10, 1 );
2
function asp_stop_load_js( $stop ) {
3
if ( is_archive() )
4
return true;
5
return false;
6
}
Copied!
Last modified 1yr ago
Copy link
Contents
Parameters