Unmarks the script module so it is no longer enqueued in the page.
$idstringrequired
function wp_dequeue_script_module( string $id ) {
wp_script_modules()->dequeue( $id );
}
| Version | Description |
|---|---|
| 6.5.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_dequeue_script_module