WordPress at a glance
filter is not described

http_request_redirection_count filter-hook . WP 2.7.0

Filters the number of redirects allowed during an HTTP request.

Usage

add_filter( 'http_request_redirection_count', 'filter_function_name_653', 10, 2 );
function filter_function_name_653( $redirect_count, $url ){
	// filter...

	return $redirect_count;
}
$redirect_count(int)
Number of redirects allowed.
Default: 5
$url(string)
The request URL.

Notes

  • Since 5.1.0 The $url parameter was added.

Where the hook is called

WP_Http::request()
http_request_redirection_count
wp-includes/class-http.php 171
'redirection'         => apply_filters( 'http_request_redirection_count', 5, $url ),

Where the hook is used (in WP core)

Использование не найдено.