exit_on_http_head

exit_on_http_head

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('exit_on_http_head') is found 1 times:

  • /wp-includes/template-loader.php line 26
     * @since 3.5.0
     *
     * @param bool $exit Whether to exit without generating any content for 'HEAD' requests. Default true.
     */
    if ( 'HEAD' === $_SERVER['REQUEST_METHOD'] && apply_filters( 'exit_on_http_head', true ) ) {
    	exit;
    }
    
    // Process feeds and trackbacks even if not using themes.
    if ( is_robots() ) {
    	/**