WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/wp style is

Description

Determine if a style has been registered, queued, printed, or is waiting to be printed.

Usage

<?php wp_style_is$handle$list 'enqueued' ); ?>

Parameters

$handle
(string) (required) Name of the style. Lowercase string.
Default: None
$list
(string) (optional) The list to query.
  • registered - style was registered through wp_register_style()
  • enqueued / queue - style was enqueued
  • done - style has been printed
  • to_do - style has not yet been printed
Default: enqueued

Return Values

(bool) 
True or false.

Change Log

Since: 2.8

Source File

wp_style_is() is located in wp-includes/functions.wp-styles.php.

Related

Enqueue Styles

Enqueue Scripts

Front-End Hooks

Admin Hooks

Login Hooks

See also index of Function Reference and index of Template Tags.