wp_style_is

Advertisement

Summery Summery

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

Syntax Syntax

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

Parameters Parameters

$handle

(Required) Name of the stylesheet.

$list

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

Default value: 'enqueued'

Return Return

(bool) Whether style is queued.

Source Source

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

 * @param string $list   Optional. Status of the stylesheet to check. Default 'enqueued'.
 *                       Accepts 'enqueued', 'registered', 'queue', 'to_do', and 'done'.
 * @return bool Whether style is queued.
 */
function wp_style_is( $handle, $list = 'enqueued' ) {

Advertisement

Changelog Changelog

Changelog
Version Description
2.8.0 Introduced.

Advertisement

Leave a Reply