wp_style_is() WP 1.0
Check whether a CSS stylesheet has been added to the queue.
No Hooks.
Return
true/false. Whether style is queued.
Usage
wp_style_is( $handle, $list );
- $handle(string) (required)
- Name of the stylesheet.
- $list(string)
- Status of the stylesheet to check. Accepts 'enqueued', 'registered', 'queue', 'to_do', and 'done'.
Default: 'enqueued'
Changelog
Since 2.8.0 | Introduced. |
Code of wp_style_is() wp style is WP 5.6
function wp_style_is( $handle, $list = 'enqueued' ) {
_wp_scripts_maybe_doing_it_wrong( __FUNCTION__, $handle );
return (bool) wp_styles()->query( $handle, $list );
}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()