WP_Dependencies::do_item()publicWP 2.6.0

Processes a dependency.

Method of the class: WP_Dependencies{}

No Hooks.

Return

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

Usage

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

Changelog

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

WP_Dependencies::do_item() code WP 6.6.2

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