wp_script_is

Advertisement

Summery Summery

Determines whether a script has been added to the queue.

Syntax Syntax

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

Description Description

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

Parameters Parameters

$handle

(Required) Name of the script.

$list

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

Default value: 'enqueued'

Return Return

(bool) Whether the script is queued.

Source Source

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

 */
function wp_dequeue_script( $handle ) {
	_wp_scripts_maybe_doing_it_wrong( __FUNCTION__, $handle );

	wp_scripts()->dequeue( $handle );

Advertisement

Changelog Changelog

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

Advertisement

Leave a Reply