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

Set item group, unless already in a lower group.

Parameters

$handle string required
Name of the item. Should be unique.
$recursion bool required
Internal flag that calling function was called recursively.
$group int | false required
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;
}

Changuelog

Versionen Description
2.8.0 Introduced.

User Contributed Notes

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