Set item group, unless already in a lower group.
Parameters
$handle
stringrequired- Name of the item. Should be unique.
$recursion
boolrequired- Internal flag that calling function was called recursively.
$group
int|falserequired- Group level: level (int), no group (false).
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
Version | Description |
---|---|
2.8.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.