WordPress at Your Fingertips
function is not described

WC_REST_Setting_Options_V2_Controller::allowed_setting_keys() public WC 3.0.0

Callback for allowed keys for each setting response.

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

No Hooks.

Return

true|false.

Usage

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

Changelog

Since 3.0.0 Introduced.

Code of WC_REST_Setting_Options_V2_Controller::allowed_setting_keys() WC 5.9.0

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