wp_script_is

SummerySummery

Determines whether a script has been added to the queue.

Syntax

wp_script_is( string $handle, string $list = 'enqueued' )

DescriptionDescription

For more information on this and similar theme functions, check out the Conditional Tags article in the Theme Developer Handbook.

ParametersParameters

$handle

(string) (Required) Name of the script.

$list

(string) (Optional) Status of the script to check. Accepts 'enqueued', 'registered', 'queue', 'to_do', and 'done'.

Default value: 'enqueued'

ReturnReturn

(bool) Whether the script is queued.

SourceSource

File: wp-includes/functions.wp-scripts.php


			

ChangelogChangelog

Changelog
Version Description
3.5.0 'enqueued' added as an alias of the 'queue' list.
2.8.0 Introduced.
Scroll to Top