rest_url_details_http_request_args

过滤钩子


apply_filters( 'rest_url_details_http_request_args', $args, $url )
参数
  • (array)
    $args
    Arguments used for the HTTP request.
    Required:
  • (string)
    $url
    The attempted URL.
    Required:
定义位置
  • wp-includes/rest-api/endpoints/class-wp-rest-url-details-controller.php
    , line 252
引入
5.9.0
弃用

Filters the HTTP request args for URL data retrieval.

Can be used to adjust response size limit and other WP_Http::request() args.

$args = apply_filters( 'rest_url_details_http_request_args', $args, $url );