WP_Dependencies::do_item() WordPress Method
The WP_Dependencies::do_item() method is used to process a single item in the dependency list. This includes both scripts and styles.
WP_Dependencies::do_item( string $handle, int|false $group = false ) #
Processes a dependency.
Parameters
- $handle
(string)(Required)Name of the item. Should be unique.
- $group
(int|false)(Optional) Group level: level (int), no group (false).
Default value: false
Return
(bool) True on success, false if not set.
Source
File: wp-includes/class.wp-dependencies.php
public function do_item( $handle, $group = false ) { return isset( $this->registered[ $handle ] ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
5.5.0 | Added the $group parameter. |
2.6.0 | Introduced. |