WordPress at a glance
function is not described

WC_REST_Settings_V2_Controller::group_defaults() protected WC 3.0.0

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

{} It's a 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.

Code of WC_REST_Settings_V2_Controller::group_defaults() WC 5.0.0

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