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: - Introduced in WordPress: 2.8.0
- Deprecated in WordPress: —
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.