W3cubDocs

/WordPress

WP_Script_Modules::deregister( string $id )

Removes a registered script module.

Parameters

$idstringrequired
The identifier of the script module.

Source

public function deregister( string $id ) {
	unset( $this->registered[ $id ] );
	unset( $this->enqueued_before_registered[ $id ] );
}

Changelog

Version Description
6.5.0 Introduced.

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