wp_dequeue_script_module()WP 6.5.0

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

No Hooks.

Return

null. Nothing (null).

Usage

wp_dequeue_script_module( $id );
$id(string) (required)
The identifier of the script module.

Changelog

Since 6.5.0 Introduced.

wp_dequeue_script_module() code WP 6.5.4

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