wpseo_sitemap_http_headers хук-фильтрYoast 1.0

Filter the HTTP headers we send before an XML sitemap.

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

add_filter( 'wpseo_sitemap_http_headers', 'wp_kama_wpseo_sitemap_http_headers_filter' );

/**
 * Function for `wpseo_sitemap_http_headers` filter-hook.
 * 
 * @param array $headers The HTTP headers we're going to send out.
 *
 * @return array
 */
function wp_kama_wpseo_sitemap_http_headers_filter( $headers ){

	// filter...
	return $headers;
}
$headers(массив)
The HTTP headers we're going to send out.

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

WPSEO_Sitemaps::send_headers()
wpseo_sitemap_http_headers
yoast/inc/sitemaps/class-sitemaps.php 664
$headers = apply_filters( 'wpseo_sitemap_http_headers', $headers );

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

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