Used By
Used By | Description |
---|---|
wp-includes/Requests/Response.php: Requests_Response::throw_for_status() | Throws an exception if the request was not successful |
Is the response a redirect?
(boolean) True if redirect (3xx status), false if not.
File: wp-includes/Requests/Response.php
public function is_redirect() { $code = $this->status_code; return in_array($code, array(300, 301, 302, 303, 307)) || $code > 307 && $code < 400; }
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/requests_response/is_redirect