WordPress at Your Fingertips

wp_style_is() WP 1.0

Check whether a CSS stylesheet has been added to the queue.

No Hooks.


true|false. Whether style is queued.


wp_style_is( $handle, $list );
$handle(string) (required)
Name of the stylesheet.
Status of the stylesheet to check. Accepts 'enqueued', 'registered', 'queue', 'to_do', and 'done'.
Default: 'enqueued'


Since 2.8.0 Introduced.

Code of wp_style_is() WP 5.8.1

function wp_style_is( $handle, $list = 'enqueued' ) {
	_wp_scripts_maybe_doing_it_wrong( __FUNCTION__, $handle );

	return (bool) wp_styles()->query( $handle, $list );

styles (include files)

Scripts and Styles

No comments
    Log In