WP_Dependencies::remove( string|string[] $handles )

In this article

Un-register an item or items.

Parameters

$handlesstring|string[]required
Item handle (string) or item handles (array of strings).

Source

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

Changelog

VersionDescription
2.6.0Moved from WP_Scripts.
2.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.