WP_Dependencies::set_group( string $handle, bool $recursion, int|false $group ): bool

In this article

Set item group, unless already in a lower group.

Parameters

$handlestringrequired
Name of the item. Should be unique.
$recursionboolrequired
Internal flag that calling function was called recursively.
$groupint|falserequired
Group level: level (int), no group (false).

Return

bool Not already in the group or a lower group.

Source

public function set_group( $handle, $recursion, $group ) {
	$group = (int) $group;

	if ( isset( $this->groups[ $handle ] ) && $this->groups[ $handle ] <= $group ) {
		return false;
	}

	$this->groups[ $handle ] = $group;

	return true;
}

Changelog

VersionDescription
2.8.0Introduced.

User Contributed Notes

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