http_request_timeout
apply_filters( ‘http_request_timeout’, float $timeout_value , string $url )
过滤器::过滤HTTP请求的超时值。
Filter Hook: Filters the timeout value for an HTTP request.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$timeout_value | (float) | 以秒为单位直到请求超时。默认值5。 |
$url | (string) | 请求URL。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
5.1.0 | wp-includes/class-http.php:161 | 1 | 0 |
http_request_timeout 为WP2原创文章,链接:https://www.wp2.cn/hook/http_request_timeout/