exit_on_http_head

FILTER wp-includes\template-loader.php (ligne 36) github
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.

Paramètres

Entrée :
true
Sortie :
@param bool $exit Whether to exit without generating any content for 'HEAD' requests. Default true.

Utilisation

// Modifier la valeur avec le filtre 'exit_on_http_head'
add_filter('exit_on_http_head', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre(true) {
    // Modifier la valeur
    return true;
}

Actualités

Chargement des actualités...