WC_REST_Data_Continents_Controller::get_hooks_relevant_to_cachingprotectedWC 1.0

Get the hooks relevant to response caching.

Method of the class: WC_REST_Data_Continents_Controller{}

No Hooks.

Returns

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

Usage

// protected - for code of main (parent) or child class
$result = $this->get_hooks_relevant_to_caching( $request, ?string $endpoint_id ): array;
$request(WP_REST_Request) (required)
.
?string $endpoint_id
.
Default: null

WC_REST_Data_Continents_Controller::get_hooks_relevant_to_caching() code WC 10.8.1

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_continents',
		'woocommerce_countries',
		'woocommerce_states',
		'woocommerce_rest_prepare_data_continent',
	);
}