Uses
Uses | Description |
---|---|
wp-includes/functions.wp-scripts.php: wp_scripts() | Initialize $wp_scripts if it has not been set. |
Determines whether a script has been added to the queue.
For more information on this and similar theme functions, check out the Conditional Tags article in the Theme Developer Handbook.
(string) (Required) Name of the script.
(string) (Optional) Status of the script to check. Accepts 'enqueued', 'registered', 'queue', 'to_do', and 'done'.
Default value: 'enqueued'
(bool) Whether the script is queued.
File: wp-includes/functions.wp-scripts.php
function wp_script_is( $handle, $list = 'enqueued' ) { _wp_scripts_maybe_doing_it_wrong( __FUNCTION__, $handle ); return (bool) wp_scripts()->query( $handle, $list ); }
Version | Description |
---|---|
3.5.0 | 'enqueued' added as an alias of the 'queue' list. |
2.8.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_script_is