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

In this article

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

VersionDescription
5.5.0Added the $group parameter.
2.6.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.