wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_dequeue_script_module › WordPress Function

Since6.5.0
Deprecatedn/a
wp_dequeue_script_module ( $id )
Parameters:
  • (string) $id The identifier of the script module.
    Required: Yes
Defined at:
Codex:

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



Source

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