Codex

Function Reference/wp script is

Contents

Description

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

Usage

<?php wp_script_is$handle$list 'queue' ); ?>

Parameters

$handle
(string) (required) Name of the script. Lowercase string.
Default: None
$list
(string) (optional) The list to query. One of 'registered' (script was registered through wp_register_script()), 'queue' (script was enqueued), 'done' (script has been printed), or 'to_do' (script has not yet been printed)
Default: queue

Return Values

(bool) 
True or false.

Change Log

Since: Unknown

Source File

wp_script_is() is located in wp-includes/functions.wp-scripts.php.

Related

wp_register_style(), wp_enqueue_style(), wp_register_script(), wp_deregister_script(), wp_enqueue_script(), wp_dequeue_script()


See also index of Function Reference and index of Template Tags.
This article is marked as in need of editing. You can help Codex by editing it.