wp_dequeue_script( string $handle )

Remove a previously enqueued script.


Description

See also


Top ↑

Parameters

$handle

(string) (Required) Name of the script to be removed.


Top ↑

Source

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

function wp_dequeue_script( $handle ) {
	_wp_scripts_maybe_doing_it_wrong( __FUNCTION__ );

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

Top ↑

Changelog

Version Description
3.1.0 Introduced.