wpseo_sitemap_http_headers

wpseo_sitemap_http_headers

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-seo.24.8.1

apply_filters('wpseo_sitemap_http_headers') is found 1 times:

  • /inc/sitemaps/class-sitemaps.php line 664
    660
    661
    662
    663
    664
    665
    666
    667
    668
    669
    670
    * Filter the HTTP headers we send before an XML sitemap.
     *
     * @param array  $headers The HTTP headers we're going to send out.
     */
    $headers = apply_filters( 'wpseo_sitemap_http_headers', $headers );
     
    foreach ( $headers as $header => $status ) {
        if ( is_numeric( $status ) ) {
            header( $header, true, $status );
            continue;
        }