wp_headers

wp_headers

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('wp_headers') is found 1 times:

  • /wp-includes/class-wp.php line 558
    554
    555
    556
    557
    558
    559
    560
    561
    562
    563
    564
    *
     * @param string[] $headers Associative array of headers to be sent.
     * @param WP       $wp      Current WordPress environment instance.
     */
    $headers = apply_filters( 'wp_headers', $headers, $this );
     
    if ( ! empty( $status ) ) {
        status_header( $status );
    }
     
    // If Last-Modified is set to false, it should not be sent (no-cache situation).

See this hook used in plugins: