rest_url_details_http_request_args

rest_url_details_http_request_args

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('rest_url_details_http_request_args') is found 1 times:

  • /wp-includes/rest-api/endpoints/class-wp-rest-url-details-controller.php line 252
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    *
     * @param array  $args Arguments used for the HTTP request.
     * @param string $url  The attempted URL.
     */
    $args = apply_filters( 'rest_url_details_http_request_args', $args, $url );
     
    $response = wp_safe_remote_get( $url, $args );
     
    if ( WP_Http::OK !== wp_remote_retrieve_response_code( $response ) ) {
        // Not saving the error response to cache since the error might be temporary.
        return new WP_Error(