WordPress at Your Fingertips

wp_dequeue_script() WP 1.0

Remove a previously enqueued script.

No Hooks.

Return

null. Nothing.

Usage

wp_dequeue_script( $handle );
$handle(string) (required)
Name of the script to be removed.

Notes

Changelog

Since 3.1.0 Introduced.

Code of wp_dequeue_script() WP 5.8

<?php
function wp_dequeue_script( $handle ) {
	_wp_scripts_maybe_doing_it_wrong( __FUNCTION__, $handle );

	wp_scripts()->dequeue( $handle );
}

From tag: script

More from category: Scripts and Styles

No comments
    Log In