wp_style_is( string $handle, string $status = 'enqueued' )

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


Parameters

$handle

(Required) Name of the stylesheet.

$status

(Optional) Status of the stylesheet to check. Default 'enqueued'.<br> Accepts 'enqueued', 'registered', 'queue', 'to_do', and 'done'.

Default value: 'enqueued'


Return

(bool) Whether style is queued.


Source

File: wp-includes/functions.wp-styles.php

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

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


Changelog

Changelog
Version Description
2.8.0 Introduced.