WC_REST_Settings_V2_Controller::group_defaults()protectedWC 3.0.0

Returns default settings for groups. null means the field is required.

Method of the class: WC_REST_Settings_V2_Controller{}

No Hooks.

Return

Array.

Usage

// protected - for code of main (parent) or child class
$result = $this->group_defaults();

Changelog

Since 3.0.0 Introduced.

WC_REST_Settings_V2_Controller::group_defaults() code WC 8.9.0

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