apply_filters( ‘http_request_redirection_count’, int $redirect_count, string $url )

In this article

Filters the number of redirects allowed during an HTTP request.

Parameters

$redirect_countint
Number of redirects allowed. Default 5.
$urlstring
The request URL.

Source

'redirection'         => apply_filters( 'http_request_redirection_count', 5, $url ),

Changelog

VersionDescription
5.1.0The $url parameter was added.
2.7.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.