About Author
Ajax Search Pro
Copyright Ernest Marcinko
Hook to prevent the plugin javascript files loading
$stop - when true, the JS files are not loaded
Last updated 4 years ago
apply_filters('asp_load_js', $stop);
add_filter( 'asp_load_js', 'asp_stop_load_js', 10, 1 ); function asp_stop_load_js( $stop ) { if ( is_archive() ) return true; return false; }