wphooks.info - http_request_args

http_request_args

(trunk - 5.0-alpha-43304)

The hook occurs in the following file:

wp-includes/class-http.php:
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
		$r = wp_parse_args( $args, $defaults );
		/**
		 * Filters the arguments used in an HTTP request.
		 *
		 * @since 2.7.0
		 *
		 * @param array  $r   An array of HTTP request arguments.
		 * @param string $url The request URL.
		 */
		$r = apply_filters( 'http_request_args', $r, $url );

		// The transports decrement this, store a copy of the original value for loop purposes.
		if ( ! isset( $r['_redirection'] ) ) {
			$r['_redirection'] = $r['redirection'];
		}

		/**
		 * Filters whether to preempt an HTTP request's return value.
		 *