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

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: false


Top ↑

Return

bool True on success, false if not set.


Top ↑

Source

File: wp-includes/class.wp-dependencies.php. View all references

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


Top ↑

Changelog

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

Top ↑

User Contributed Notes

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