wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



exit_on_http_head › Les Filtres WordPress

Depuis3.5.0
Dépréciéen/a
apply_filters( 'exit_on_http_head', true )
Paramètres:
  • (bool) $exit Whether to exit without generating any content for 'HEAD' requests. Default true.
    Requis: Oui
Défini(e) dans:
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 ) ) {