WP_Dependencies::set_group()
Set item group, unless already in a lower group.
Метод класса: WP_Dependencies{}
Хуков нет.
Возвращает
true|false
. Not already in the group or a lower group.
Использование
$WP_Dependencies = new WP_Dependencies(); $WP_Dependencies->set_group( $handle, $recursion, $group );
- $handle(строка) (обязательный)
- Name of the item. Should be unique.
- $recursion(true|false) (обязательный)
- Internal flag that calling function was called recursively.
- $group(int|false) (обязательный)
- Group level: level (int), no group (false).
Список изменений
С версии 2.8.0 | Введена. |
Код WP_Dependencies::set_group() WP Dependencies::set group WP 6.6.2
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; }