wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



exit_on_http_head › WordPress Filter Hooks

Da3.5.0
Deprecaton/a
› apply_filters( 'exit_on_http_head', true )
Parametri:
  • () exit Whether to exit without generating any content for 'HEAD' requests. Default true.
    Richiesto: Sì
Definito a:
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.




Sorgenti

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