WC_REST_Taxes_V1_Controller::get_hooks_relevant_to_caching
Get the hooks relevant to response caching.
Method of the class: WC_REST_Taxes_V1_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_Taxes_V1_Controller::get_hooks_relevant_to_caching() WC REST Taxes V1 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_rest_prepare_tax',
'woocommerce_rest_tax_query',
);
}