How to deregister WordPress stylesheets

How to deregister WordPress stylesheets, using the stylesheet of WP-PageNavi as an example:

function foo_deregister_styles() {
    wp_deregister_style('wp-pagenavi');
}

add_action('wp_print_styles', 'foo_deregister_styles', 100);

Leave a Comment

Your email address will not be published. Required fields are marked *