🌐 US-Proxy
class="wp-singular wp-parser-method-template-default single single-wp-parser-method postid-153268 wp-embed-responsive wp-theme-wporg-parent-2021 wp-child-theme-wporg-developer-2023">

WP_Script_Modules::dequeue( string $id )

In this article

Unmarks the script module so it will no longer be enqueued in the page.

Parameters

$idstringrequired
The identifier of the script module.

Source

public function dequeue( string $id ) {
	$this->queue = array_values( array_diff( $this->queue, array( $id ) ) );
}

Changelog

VersionDescription
6.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.