wp_style_is() – Check whether a CSS stylesheet has been added to the queue.
You appear to be a bot. Output may be restricted
Description
Checks whether a CSS stylesheet has been added to the queue.
Usage
$bool = wp_style_is( $handle, $status );
Parameters
- $handle
- ( string ) required – Name of the stylesheet.
- $status
- ( string ) optional default: enqueued – Optional. Status of the stylesheet to check. Default 'enqueued'. Accepts 'enqueued', 'registered', 'queue', 'to_do', and 'done'.
Returns
bool Whether style is queued.
Source
File name: wordpress/wp-includes/functions.wp-styles.php
Lines:
1 to 5 of 5
function wp_style_is( $handle, $status = 'enqueued' ) { _wp_scripts_maybe_doing_it_wrong( wp_style_is, $handle ); return (bool) wp_styles()->query( $handle, $status ); }