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



http_api_transports ›

Since3.7.0
已弃用n/a
apply_filters( 'http_api_transports', $transports, $args, $url )
参数: (3)
  • (array) $transports Array of HTTP transports to check. Default array contains 'curl', and 'streams', in that order.
    Required: Yes
  • (array) $args HTTP request arguments.
    Required: Yes
  • (string) $url The URL to request.
    Required: Yes
定义在:
文档:

Filters which HTTP transports are available and in what order.





源码

$request_order = apply_filters( 'http_api_transports', $transports, $args, $url );