wp_script_is


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

Parameters:
  • (string) handle Name of the script.
  • (string) status 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 Conditional Tags} article in the Theme Developer Handbook.

Related Functions

wp_scripts, wp_script_modules, wp_credits, wp_print_scripts, wp_style_is

Top Google Results

User discussions

wpseek mobile