WP_Dependencies::dequeue( mixed $handles )

Dequeue an item or items.


Description

Decodes handles and arguments, then dequeues handles and removes arguments from the class property $args.


Parameters

$handles

(Required) Item handle and argument (string) or item handles and arguments (array of strings).


Source

File: wp-includes/class.wp-dependencies.php

	public function dequeue( $handles ) {
		foreach ( (array) $handles as $handle ) {
			$handle = explode('?', $handle);
			$key = array_search($handle[0], $this->queue);
			if ( false !== $key ) {
				unset($this->queue[$key]);
				unset($this->args[$handle[0]]);
			}
		}
	}

Changelog

Changelog
Version Description
WP-2.6.0 Moved from WP_Scripts.
WP-2.1.0 Introduced.