WC_REST_Settings_V2_Controller::allowed_group_keys()
Callback for allowed keys for each group response.
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. |
WC_REST_Settings_V2_Controller::allowed_group_keys() WC REST Settings V2 Controller::allowed group keys code WC 7.7.0
public function allowed_group_keys( $key ) { return in_array( $key, array( 'id', 'label', 'description', 'parent_id', 'sub_groups' ) ); }