WP_Dependencies::remove()publicWP 2.1.0

Un-register an item or items.

{} It's a method of the class: WP_Dependencies{}

No Hooks.

Return

null. Nothing.

Usage

$WP_Dependencies = new WP_Dependencies();
$WP_Dependencies->remove( $handles );
$handles(string|string[]) (required)
Item handle (string) or item handles (array of strings).

Changelog

Since 2.1.0 Introduced.
Since 2.6.0 Moved from WP_Scripts.

Code of WP_Dependencies::remove() WP 6.0

public function remove( $handles ) {
	foreach ( (array) $handles as $handle ) {
		unset( $this->registered[ $handle ] );
	}
}