wpseo_sitemap_http_headers хук-фильтр . Yoast 1.0
Filter the HTTP headers we send before an XML sitemap.
Использование
add_filter( 'wpseo_sitemap_http_headers', 'filter_function_name_3617' ); function filter_function_name_3617( $headers ){ // filter... return $headers; }
- $headers(массив)
- The HTTP headers we're going to send out.
Где вызывается хук
wpseo_sitemap_http_headers
yoast/inc/sitemaps/class-sitemaps.php 635
$headers = apply_filters( 'wpseo_sitemap_http_headers', $headers );