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

Un-register an item or items.


Parameters

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

Top ↑

Source

File: wp-includes/class-wp-dependencies.php. View all references

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

Top ↑

Changelog

Changelog
Version Description
2.6.0 Moved from WP_Scripts.
2.1.0 Introduced.

Top ↑

User Contributed Notes

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