Removes a previously enqueued script.
Description
See also
Parameters
$handle
stringrequired- Name of the script to be removed.
Source
function wp_dequeue_script( $handle ) {
_wp_scripts_maybe_doing_it_wrong( __FUNCTION__, $handle );
wp_scripts()->dequeue( $handle );
}
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |
Dequeue a script