asp_load_css_js

Lets aborting both the CSS and JS asset loading
apply_filters('asp_load_css_js', $stop);

Parameters

  • $stop - when true, the CSS and JS files are not loaded

add_filter( 'asp_load_css_js', 'asp_stop_load_css_js', 10, 1 );
function asp_stop_load_css_js( $stop ) {
if ( is_archive() )
return true;
return false;
}