WPDev.one
Core Function
View Source on Trac ↗

wp_script_is()

wp_script_is( mixed $handle, mixed $status = 'enqueued' )

Determines whether a script has been added to the queue.

Parameters 2 required

Name / Type Description
$handle
string

Name of the script.

Required
string

$status Optional. Status of the script to check. Default 'enqueued'. Accepts 'enqueued', 'registered', 'queue', 'to_do', and 'done'.

Required

Return Value

(bool)
Whether the script is queued.

Function Information

Since Version
2.8.0
Source File
wp-includes/functions.wp-scripts.php
Advertisement