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. |
Deregisters the script module.
$idstringrequiredfunction wp_deregister_script_module( string $id ) {
wp_script_modules()->deregister( $id );
}
| Version | Description |
|---|---|
| 6.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.