Set item group, unless already in a lower group.
Parameters
-
$handlestring required -
Name of the item. Should be unique.
-
$recursionbool required -
Internal flag that calling function was called recursively.
-
$groupint | false required -
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;
}
Changuelog
| Versionen | Description |
|---|---|
| 2.8.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.