wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_style_is › WordPress Function

Since2.8.0
Deprecatedn/a
wp_style_is ( $handle, $status = 'enqueued' )
Parameters: (2)
  • (string) $handle Name of the stylesheet.
    Required: Yes
  • (string) $status Optional. Status of the stylesheet to check. Default 'enqueued'. Accepts 'enqueued', 'registered', 'queue', 'to_do', and 'done'.
    Required: No
    Default: 'enqueued'
Returns:
  • (bool) Whether style is queued.
Defined at:
Codex:

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



Source

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

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