WordPress at a glance
filter is not described

rest_exposed_cors_headers filter-hook . WP 5.5.0

Filters the list of response headers that are exposed to CORS requests.

Usage

add_filter( 'rest_exposed_cors_headers', 'filter_function_name_4260' );
function filter_function_name_4260( $expose_headers ){
	// filter...

	return $expose_headers;
}
$expose_headers(string[])
The list of headers to expose.

Список изменений

С версии 5.5.0 Введена.

Где вызывается хук

WP_REST_Server::serve_request()
rest_exposed_cors_headers
wp-includes/rest-api/class-wp-rest-server.php 255
$expose_headers = apply_filters( 'rest_exposed_cors_headers', $expose_headers );

Где используется хук в ядре WP

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