wp_dequeue_style() WordPress Function
The wp_dequeue_style() function allows you to remove a registered CSS stylesheet from a WordPress generated page. This function is typically used to dequeue a stylesheet that is no longer needed or required.
wp_dequeue_style( string $handle ) #
Remove a previously enqueued CSS stylesheet.
Description
See also
Parameters
- $handle
(string)(Required)Name of the stylesheet to be removed.
Source
File: wp-includes/functions.wp-styles.php
function wp_dequeue_style( $handle ) { _wp_scripts_maybe_doing_it_wrong( __FUNCTION__, $handle ); wp_styles()->dequeue( $handle ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |