pre_http_send_through_proxy
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
apply_filters( 'pre_http_send_through_proxy', bool|null $override, string $uri, array $check, array $home )
Описание
Возврат false обойдёт прокси; возврат true отправит запрос через прокси. Возврат null пропускает фильтр.
Оригинал (английский)
Returning false will bypass the proxy; returning true will send the request through the proxy. Returning null bypasses the filter.
Фильтруемое значение
Параметры
$override
bool|null
обязательный
$uri
string
обязательный
$check
array
обязательный
$home
array
обязательный
Исходный код
wp-includes/class-wp-http-proxy.php:194
$result = apply_filters( 'pre_http_send_through_proxy', null, $uri, $check, $home );
История изменений
| Версия | Описание |
|---|---|
| 3.5.0 | Introduced. |

