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

Check whether a script has been added to the queue.

Related Functions

wp_scripts, wp_credits, wp_print_scripts, wp_style_is, _print_scripts

Top Google Results

User discussions

wpseek mobile