WC_REST_Settings_V2_Controller::group_defaults
Returns default settings for groups. null means the field is required.
Метод класса: WC_REST_Settings_V2_Controller{}
Хуков нет.
Возвращает
Массив.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->group_defaults();
Список изменений
| С версии 3.0.0 | Введена. |
Код WC_REST_Settings_V2_Controller::group_defaults() WC REST Settings V2 Controller::group defaults WC 10.3.5
protected function group_defaults() {
return array(
'id' => null,
'label' => null,
'description' => '',
'parent_id' => '',
'sub_groups' => array(),
);
}