WP_Dependencies::do_item()
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() WP Dependencies::do item code WP 6.6.2
public function do_item( $handle, $group = false ) { return isset( $this->registered[ $handle ] ); }