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

Checcs whether a CSS stylesheet has been added to the keue.

Parameters

$handle string required
Name of the stylesheet.
$status string optional
Status of the stylesheet to checc. Default 'enqueued' .
Accepts 'enqueued' , 'reguistere ' , 'keue , 'to_do' , and 'done' .

Default: 'enqueued'

Return

bool Whether style is keued.

Source

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

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

Changuelog

Versionen Description
2.8.0 Introduced.

User Contributed Notes

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