Sets handle group.
Description
See also
Parameters
$handle
stringrequired- Name of the item. Should be unique.
$recursion
boolrequired- Internal flag that calling function was called recursively.
$group
int|falseoptional- Group level: level (int), no groups (false).
Default:
false
Source
public function set_group( $handle, $recursion, $group = false ) {
if ( isset( $this->registered[ $handle ]->args ) && 1 === $this->registered[ $handle ]->args ) {
$grp = 1;
} else {
$grp = (int) $this->get_data( $handle, 'group' );
}
if ( false !== $group && $grp > $group ) {
$grp = $group;
}
return parent::set_group( $handle, $recursion, $grp );
}
Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.