WordPress.org

Ready to get started?Download WordPress

Codex

Function Reference/wp style is

Contents

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

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