wpseek.com
A WordPress-centric search engine for devs and theme authors



exit_on_http_head › WordPress Filter Hooks

Since3.5.0
Deprecatedn/a
apply_filters( 'exit_on_http_head', true )
Parameters:
  • (bool) $exit Whether to exit without generating any content for 'HEAD' requests. Default true.
    Required: Yes
Defined at:
Codex:

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.





Source

if ( 'HEAD' === $_SERVER['REQUEST_METHOD'] && apply_filters( 'exit_on_http_head', true ) ) {