WordPress Version: 6.5
/**
* Deregisters the script module.
*
* @since 6.5.0
*
* @param string $id The identifier of the script module.
*/
function wp_deregister_script_module(string $id)
{
wp_script_modules()->deregister($id);
}
The timeline below displays how wordpress function wp_deregister_script_module has changed across different WordPress versions. If a version is not listed, refer to the next available version below.
/**
* Deregisters the script module.
*
* @since 6.5.0
*
* @param string $id The identifier of the script module.
*/
function wp_deregister_script_module(string $id)
{
wp_script_modules()->deregister($id);
}