wp_dequeue_style

Remove a previously enqueued CSS stylesheet.

Description

wp_dequeue_style( (string) $handle ); 

Parameters (1)

0. $handle (string)
Name of the stylesheet to be removed.

Usage

  1. if ( !function_exists( 'wp_dequeue_style' ) ) { 
  2. require_once ABSPATH . WPINC . '/functions.wp-styles.php'; 
  3.  
  4. // Name of the stylesheet to be removed. 
  5. $handle = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wp_dequeue_style($handle); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/functions.wp-styles.php  
  1. function wp_dequeue_style( $handle ) { 
  2.  
  3. wp_styles)->dequeue( $handle );