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

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


Parameters

$handle string Required
Name of the stylesheet.
$status string Optional
Status of the stylesheet to check. Default 'enqueued'.
Accepts 'enqueued', 'registered', 'queue', 'to_do', and 'done'.

Default: 'enqueued'


Top ↑

Return

bool Whether style is queued.


Top ↑

Source

File: wp-includes/functions.wp-styles.php. View all references

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

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


Top ↑

Changelog

Changelog
Version Description
2.8.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.