wp_dequeue_style() WP 1.0
Remove a previously enqueued CSS stylesheet.
No Hooks.
Return
Null. Nothing.
Usage
wp_dequeue_style( $handle );
- $handle(string) (required)
- Name of the stylesheet to be removed.
Notes
- See: WP_Dependencies::dequeue()
Changelog
Since 3.1.0 | Introduced. |
Code of wp_dequeue_style() wp dequeue style WP 5.6
function wp_dequeue_style( $handle ) {
_wp_scripts_maybe_doing_it_wrong( __FUNCTION__, $handle );
wp_styles()->dequeue( $handle );
}Related Functions
From tag: styles (include files)
More from category: Scripts and Styles
- add_editor_style()
- wp_add_inline_script()
- wp_dequeue_script()
- wp_deregister_script()
- wp_enqueue_code_editor()