WC_REST_Settings_V2_Controller::group_defaults()
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() WC REST Settings V2 Controller::group defaults code WC 7.7.0
protected function group_defaults() { return array( 'id' => null, 'label' => null, 'description' => '', 'parent_id' => '', 'sub_groups' => array(), ); }