wp_dequeue_script() – Function | Developer.WordPress.org
Removes a previously enqueued script.
Description
See also
Parameters
$handlestringrequiredName of the script to be removed.
Source
function wp_dequeue_script( $handle ) {
_wp_scripts_maybe_doing_it_wrong( __FUNCTION__, $handle );
wp_scripts()->dequeue( $handle );
}
| Uses | Description |
|---|---|
wp_scripts()wp-includes/functions.wp-scripts.php | Initializes $wp_scripts if it has not been set. |
| Used by | Description |
|---|---|
WP_Block::render()wp-includes/class-wp-block.php | Generates the render output for the block. |
Changelog
| Version | Description |
|---|---|
| 3.1.0 | Introduced. |
User Contributed Notes
-
Skip to note 2 content
Dequeue a script