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