wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



exit_on_http_head › Filtr WordPress Hooks

Od3.5.0
Przestarzałyn/a
apply_filters( 'exit_on_http_head', true )
Parametry:
  • (bool) $exit Whether to exit without generating any content for 'HEAD' requests. Default true.
    Wymagane: Tak
Zdefiniowane na:
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.





Źródło

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