http_api_transports

过滤钩子


apply_filters( 'http_api_transports', $transports, $args, $url )
参数
  • (string[])
    $transports
    Array of HTTP transports to check. Default array contains
    ‘curl’ and ‘streams’, in that order.
    Required:
  • (array)
    $args
    HTTP request arguments.
    Required:
  • (string)
    $url
    The URL to request.
    Required:
定义位置
  • wp-includes/class-wp-http.php
    , line 537
引入
3.7.0
弃用

Filters which HTTP transports are available and in what order.

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