http_request_args filter-hookWP 2.7.0

Filters the arguments used in an HTTP request.

Usage

add_filter( 'http_request_args', 'wp_kama_http_request_args_filter', 10, 2 );

/**
 * Function for `http_request_args` filter-hook.
 * 
 * @param array  $parsed_args An array of HTTP request arguments.
 * @param string $url         The request URL.
 *
 * @return array
 */
function wp_kama_http_request_args_filter( $parsed_args, $url ){

	// filter...
	return $parsed_args;
}
$parsed_args(array)
An array of HTTP request arguments.
$url(string)
The request URL.

Changelog

Since 2.7.0 Introduced.

Where the hook is called

WP_Http::request()
http_request_args
wp-includes/class-wp-http.php 232
$parsed_args = apply_filters( 'http_request_args', $parsed_args, $url );

Where the hook is used in WordPress

Usage not found.