WC_REST_Settings_V2_Controller::group_defaults()protectedWC 3.0.0

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 8.7.0

protected function group_defaults() {
	return array(
		'id'          => null,
		'label'       => null,
		'description' => '',
		'parent_id'   => '',
		'sub_groups'  => array(),
	);
}