W3cubDocs

/WordPress

wp_deregister_script_module( string $id )

Deregisters the script module.

Parameters

$idstringrequired
The identifier of the script module.

Source

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

Changelog

Version Description
6.5.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_deregister_script_module