http_request_redirection_count
apply_filters( ‘http_request_redirection_count’, int $redirect_count , string $url )
过滤器::筛选HTTP请求期间允许的重定向数。
Filter Hook: Filters the number of redirects allowed during an HTTP request.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$redirect_count | (int) | 允许的重定向数。默认值5。 |
$url | (string) | 请求URL。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
5.1.0 | wp-includes/class-http.php:171 | 1 | 0 |
http_request_redirection_count 为WP2原创文章,链接:https://www.wp2.cn/hook/http_request_redirection_count/