Dequeue an item or items.
Decodes handles and arguments, then dequeues handles and removes arguments from the class property $args.
(string|string[]) (Required) Item handle (string) or item handles (array of strings).
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, true ); if ( false !== $key ) { // Reset all dependencies so they must be recalculated in recurse_deps(). $this->all_queued_deps = null; unset( $this->queue[ $key ] ); unset( $this->args[ $handle[0] ] ); } } }
Version | Description |
---|---|
2.6.0 | Moved from WP_Scripts . |
2.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_dependencies/dequeue