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



http_request_timeout ›

Since5.1.0
已弃用n/a
apply_filters( 'http_request_timeout', 5, $url )
参数: (2)
  • (int) $timeout_value Time in seconds until a request times out. Default 5.
    Required: Yes
  • (string) $url The request URL.
    Required: Yes
定义在:
文档:

Filters the timeout value for an HTTP request.





源码

'timeout'             => apply_filters( 'http_request_timeout', 5, $url ),