exit_on_http_head

Advertisement

Summery Summery

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

Syntax Syntax

apply_filters( 'exit_on_http_head', bool $exit )

Description Description

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

Parameters Parameters

$exit

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

Source Source

File: wp-includes/template-loader.php

Advertisement

Changelog Changelog

Changelog
Version Description
3.5.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.