WordPress как на ладони
wordpress jino
фильтр не описан

http_response хук-фильтр . WP 2.9.0

Filters the HTTP API response immediately before the response is returned.

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

add_filter( 'http_response', 'filter_function_name_5995', 10, 3 );
function filter_function_name_5995( $response, $r, $url ){
	// filter...

	return $response;
}
$response(array)
HTTP response.
$r(array)
HTTP request arguments.
$url(string)
The request URL.

Связи хука

Используется в: WP_Http::request(), WP_Http::_dispatch_request()

Остальные хуки из: WP_Http::request():

Остальные хуки из: WP_Http::_dispatch_request():

Кусок кода с хуком

Фрагмент из: wp-includes/class-http.php WP 4.9
...
				),
				'cookies' => array(),
				'http_response' => null,
			);
		}

		/**
		 * Filters the HTTP API response immediately before the response is returned.
		 *
		 * @since 2.9.0
		 *
		 * @param array  $response HTTP response.
		 * @param array  $r        HTTP request arguments.
		 * @param string $url      The request URL.
		 */
		return apply_filters( 'http_response', $response, $r, $url );
	}

	/**
	 * Normalizes cookies for using in Requests.
	 *
	 * @since 4.6.0
	 * @static
	 *
	 * @param array $cookies List of cookies to send with the request.
	 * @return Requests_Cookie_Jar Cookie holder object.
	 */
	public static function normalize_cookies( $cookies ) {
		$cookie_jar = new Requests_Cookie_Jar();

		foreach ( $cookies as $name => $value ) {
...
Фрагмент из: wp-includes/class-http.php WP 4.9
...
		/** This action is documented in wp-includes/class-http.php */
		do_action( 'http_api_debug', $response, 'response', $class, $args, $url );

		if ( is_wp_error( $response ) )
			return $response;

		/**
		 * Filters the HTTP API response immediately before the response is returned.
		 *
		 * @since 2.9.0
		 *
		 * @param array  $response HTTP response.
		 * @param array  $args     HTTP request arguments.
		 * @param string $url      The request URL.
		 */
		return apply_filters( 'http_response', $response, $args, $url );
	}

	/**
	 * Uses the POST HTTP method.
	 *
	 * Used for sending data that is expected to be in the body.
	 *
	 * @since 2.7.0
	 *
	 * @param string       $url  The request URL.
	 * @param string|array $args Optional. Override the defaults.
	 * @return array|WP_Error Array containing 'headers', 'body', 'response', 'cookies', 'filename'. A WP_Error instance upon error
	 */
	public function post($url, $args = array()) {
		$defaults = array('method' => 'POST');
...