WordPress at Your Fingertips
filter is not described

exit_on_http_head filter-hook . WP 3.5.0

Filters whether to allow 'HEAD' requests to generate content.

Provides a significant performance bump by exiting before the page content loads for 'HEAD' requests. See #14348.


add_filter( 'exit_on_http_head', 'filter_function_name_6525' );
function filter_function_name_6525( $exit ){
	// filter...

	return $exit;
Whether to exit without generating any content for 'HEAD' requests.
Default: true


Since 3.5.0 Introduced.

Where the hook is called

In file: /wp-includes/template-loader.php
wp-includes/template-loader.php 26
if ( 'HEAD' === $_SERVER['REQUEST_METHOD'] && apply_filters( 'exit_on_http_head', true ) ) {

Where in WP core the hook is used WordPress

Usage not found.