WC_REST_Data_Continents_Controller::get_files_relevant_to_response_caching
Get the files relevant to response caching.
Метод класса: WC_REST_Data_Continents_Controller{}
Хуков нет.
Возвращает
array. Array of file paths to track for cache invalidation.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_files_relevant_to_response_caching( $request, ?string $endpoint_id ): array;
- $request(WP_REST_Request) (обязательный)
- .
- ?string $endpoint_id
- .
По умолчанию:null
Код WC_REST_Data_Continents_Controller::get_files_relevant_to_response_caching() WC REST Data Continents Controller::get files relevant to response caching WC 11.2.2
protected function get_files_relevant_to_response_caching( WP_REST_Request $request, ?string $endpoint_id = null ): array { // phpcs:ignore Squiz.Commenting.FunctionComment.IncorrectTypeHint
return array(
'i18n/continents.php',
'i18n/countries.php',
'i18n/states.php',
'i18n/locale-info.php',
);
}