WordPress开发者和主题制作者的搜索引擎



http_request_redirection_count ›

Since5.1.0
已弃用n/a
apply_filters( 'http_request_redirection_count', 5, $url )
参数: (2)
  • (int) $redirect_count Number of redirects allowed. Default 5.
    Required: Yes
  • (string) $url The request URL.
    Required: Yes
定义在:
文档:

Filters the number of redirects allowed during an HTTP request.





源码

'redirection'         => apply_filters( 'http_request_redirection_count', 5, $url ),