asp_load_css

Hook to prevent the plugin stylesheet (CSS) files loading

apply_filters('asp_load_css', $stop);

Parameters

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

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

Last updated