Uma área de pesquisa sobre o WordPress para devs e autores do tema



exit_on_http_head ›

Desde3.5.0
Obsoleton/a
apply_filters( 'exit_on_http_head', true )
Parâmetros:
  • (bool) $exit Whether to exit without generating any content for 'HEAD' requests. Default true.
    Required: Yes
Definido em:
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.





Fonte

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