WC_REST_Taxes_V1_Controller::get_hooks_relevant_to_caching
Get the hooks relevant to response caching.
Метод класса: WC_REST_Taxes_V1_Controller{}
Хуков нет.
Возвращает
Массив. 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_Taxes_V1_Controller::get_hooks_relevant_to_caching() WC REST Taxes V1 Controller::get hooks relevant to caching WC 10.9.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',
);
}