http_request_version

FILTER wp-includes\class-wp-http.php (ligne 201) github
Filters the version of the HTTP protocol used in a request.

Paramètres

Entrée :
'1.0', $url
Sortie :
@param string $version Version of HTTP used. Accepts '1.0' and '1.1'. Default '1.0'.
@param string $url     The request URL.

Utilisation

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

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

Actualités

Chargement des actualités...