WC_REST_Settings_V2_Controller::allowed_group_keys() public WC 3.0.0
Callback for allowed keys for each group response.
{} It's a method of the class: WC_REST_Settings_V2_Controller{}
No Hooks.
Return
true/false.
Usage
$WC_REST_Settings_V2_Controller = new WC_REST_Settings_V2_Controller(); $WC_REST_Settings_V2_Controller->allowed_group_keys( $key );
- $key(string) (required)
- Key to check.
Changelog
Since 3.0.0 | Introduced. |
Code of WC_REST_Settings_V2_Controller::allowed_group_keys() WC REST Settings V2 Controller::allowed group keys WC 5.0.0
public function allowed_group_keys( $key ) {
return in_array( $key, array( 'id', 'label', 'description', 'parent_id', 'sub_groups' ) );
}