http_request_host_is_external

FILTER wp-includes\http.php (ligne 618) github
Checks if HTTP request is external or not. Allows to change and allow external requests for the HTTP request.

Paramètres

Entrée :
false, $host, $url
Sortie :
@param bool   $external Whether HTTP request is external or not.
@param string $host     Host name of the requested URL.
@param string $url      Requested URL.

Utilisation

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

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

Actualités

Chargement des actualités...