WC_REST_Data_Countries_Controller::get_hooks_relevant_to_caching │ protected │ WC 1.0

Get the hooks relevant to response caching.

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

Хуков нет.

Возвращает

array. Array of hook names to track for cache invalidation.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_hooks_relevant_to_caching( $request, ?string $endpoint_id ): array;
$request(WP_REST_Request) (обязательный)
.
?string $endpoint_id
.
По умолчанию: null

Код WC_REST_Data_Countries_Controller::get_hooks_relevant_to_caching() WC 11.2.2

protected function get_hooks_relevant_to_caching( WP_REST_Request $request, ?string $endpoint_id = null ): array { // phpcs:ignore Squiz.Commenting.FunctionComment.IncorrectTypeHint
	return array(
		'woocommerce_countries',
		'woocommerce_states',
		'woocommerce_sort_countries',
		'woocommerce_rest_prepare_data_country',
	);
}