wp_dequeue_script_module( string $id )

In this article

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

Parameters

$idstringrequired
The identifier of the script module.

Source

function wp_dequeue_script_module( string $id ) {
	wp_script_modules()->dequeue( $id );
}

Changelog

VersionDescription
6.5.0Introduced.

User Contributed Notes

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