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

(string) (Required) Name of the stylesheet.

$list

(string) (Optional) Status of the stylesheet to check. 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

This site uses Akismet to reduce spam. Learn how your comment data is processed.