wp_script_is


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

Parameters:
  • (string) $handle Name of the script.
  • (string) $list Optional. Status of the script to check. Default 'enqueued'. Accepts 'enqueued', 'registered', 'queue', 'to_do', and 'done'.
Returns:
  • (bool) Whether the script is queued.
Defined at:
Change Log:
  • 3: .

Description

Determines whether a script has been added to the queue.

For more information on this and similar theme functions, check out the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ Conditional Tags} article in the Theme Developer Handbook.

Related Functions

wp_scripts, wp_credits, wp_print_scripts, wp_style_is, _print_scripts

Top Google Results

User discussions

wpseek mobile