pre_http_send_through_proxy

FILTER wp-includes\class-wp-http-proxy.php (ligne 194) github
Filters whether to preempt sending the request through the proxy. Returning false will bypass the proxy; returning true will send the request through the proxy. Returning null bypasses the filter.

Paramètres

Entrée :
null, $uri, $check, $home
Sortie :
@param bool|null $override Whether to send the request through the proxy. Default null.
@param string    $uri      URL of the request.
@param array     $check    Associative array result of parsing the request URL with `parse_url()`.
@param array     $home     Associative array result of parsing the site URL with `parse_url()`.

Utilisation

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

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

Actualités

Chargement des actualités...