apply_filters( 'exit_on_http_head', bool $exit )

Filters whether to allow ‘HEAD’ requests to generate content.


Description

Provides a significant performance bump by exiting before the page content loads for ‘HEAD’ requests. See https://core.trac.wordpress.org/ticket/14348.


Parameters

$exit

(bool) Whether to exit without generating any content for 'HEAD' requests. Default true.


Source

File: wp-includes/template-loader.php

View on GitHub


Changelog

Changelog
Version Description
WP-3.5.0 Introduced.