wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



exit_on_http_head › WordPress Filter Hooks

Seit3.5.0
Veraltetn/v
apply_filters( 'exit_on_http_head', true )
Parameter:
  • (bool) $exit Whether to exit without generating any content for 'HEAD' requests. Default true.
    Erforderlich: Ja
Definiert in:
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.





Quellcode

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