WP_Script_Modules::dequeue( string $id )
Unmarks the script module so it will no longer be enqueued in the page.
Parameters
- $id
-
(Required) The identifier of the script module.
Source
File: wp-includes/class-wp-script-modules.php
public function dequeue( string $id ) {
if ( isset( $this->registered[ $id ] ) ) {
$this->registered[ $id ]['enqueue'] = false;
}
unset( $this->enqueued_before_registered[ $id ] );
}
Changelog
| Version | Description |
|---|---|
| 6.5.0 | Introduced. |