WC_REST_Settings_V2_Controller::allowed_group_keys()publicWC 3.0.0

Callback for allowed keys for each group response.

Метод класса: WC_REST_Settings_V2_Controller{}

Хуков нет.

Возвращает

true|false.

Использование

$WC_REST_Settings_V2_Controller = new WC_REST_Settings_V2_Controller();
$WC_REST_Settings_V2_Controller->allowed_group_keys( $key );
$key(строка) (обязательный)
Key to check.

Список изменений

С версии 3.0.0 Введена.

Код WC_REST_Settings_V2_Controller::allowed_group_keys() WC 8.7.0

public function allowed_group_keys( $key ) {
	return in_array( $key, array( 'id', 'label', 'description', 'parent_id', 'sub_groups' ) );
}