wp_headers

wp_headers

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

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('wp_headers') is found 1 times:

  • /wp-includes/class-wp.php line 558
    		 *
    		 * @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: