WordPress at a glance
function is not described

WC_REST_Setting_Options_Controller::allowed_setting_keys() public WC 1.0

Callback for allowed keys for each setting response.

{} It's a method of the class: WC_REST_Setting_Options_Controller{}

No Hooks.

Return

true/false.

Usage

$WC_REST_Setting_Options_Controller = new WC_REST_Setting_Options_Controller();
$WC_REST_Setting_Options_Controller->allowed_setting_keys( $key );
$key(string) (required)
Key to check.

Code of WC_REST_Setting_Options_Controller::allowed_setting_keys() WC 5.0.0

<?php
public function allowed_setting_keys( $key ) {
	return in_array(
		$key, array(
			'id',
			'group_id',
			'label',
			'description',
			'default',
			'tip',
			'placeholder',
			'type',
			'options',
			'value',
			'option_key',
		), true
	);
}