Filter hook 'exit_on_http_head'

in WP Core File wp-includes/template-loader.php at line 26

Description

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.

Occurrences

Filename Line Number
wp-includes/template-loader.php 26

Parameters

Type Name Description
bool $exit Whether to exit without generating any content for 'HEAD' requests. Default true.

PHP Doc

/**
 * 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.
 *
 * @since 3.5.0
 *
 * @param bool $exit Whether to exit without generating any content for 'HEAD' requests. Default true.
 */