wp_deregister_script_module()WP 6.5.0

Deregisters the script module.

No Hooks.

Returns

null. Nothing (null).

Usage

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

Changelog

Since 6.5.0 Introduced.

wp_deregister_script_module() code WP 6.8.3

function wp_deregister_script_module( string $id ) {
	wp_script_modules()->deregister( $id );
}