WP_Dependencies::do_item()publicWP 2.6.0

Processes a dependency.

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

No Hooks.


true|false. True on success, false if not set.


$WP_Dependencies = new WP_Dependencies();
$WP_Dependencies->do_item( $handle, $group );
$handle(string) (required)
Name of the item. Should be unique.
Group level: level (int), no group (false).
Default: false


Since 2.6.0 Introduced.
Since 5.5.0 Added the $group parameter.

Code of WP_Dependencies::do_item() WP 5.9.3

public function do_item( $handle, $group = false ) {
	return isset( $this->registered[ $handle ] );