W3cubDocs

/WordPress

WP_Dependencies::do_item( string $handle, int|false $group = false ): bool

Processes a dependency.

Parameters

$handlestringrequired
Name of the item. Should be unique.
$groupint|falseoptional
Group level: level (int), no group (false).

Default:false

Return

bool True on success, false if not set.

Source

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

Changelog

Version Description
5.5.0 Added the $group parameter.
2.6.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/WP_Dependencies/do_item