WP_Http::handle_redirects( string $url, array $args, array $response )
Handles an HTTP redirect and follows it if appropriate.
Parameters
- $url
-
(Required) The URL which was requested.
- $args
-
(Required) The arguments which were used to make the request.
- $response
-
(Required) The response of the HTTP request.
Return
(array|false|WP_Error) An HTTP API response array if the redirect is successfully followed, false if no redirect is present, or a WP_Error object if there's an error.
Source
File: wp-includes/class-wp-http.php
Changelog
Version | Description |
---|---|
3.7.0 | Introduced. |