pre_http_send_through_proxy

pre_http_send_through_proxy

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('pre_http_send_through_proxy') is found 1 times:

  • /wp-includes/class-wp-http-proxy.php line 194
    		 * @param string    $uri      URL of the request.
    		 * @param array     $check    Associative array result of parsing the request URL with `parse_url()`.
    		 * @param array     $home     Associative array result of parsing the site URL with `parse_url()`.
    		 */
    		$result = apply_filters( 'pre_http_send_through_proxy', null, $uri, $check, $home );
    		if ( ! is_null( $result ) ) {
    			return $result;
    		}
    
    		if ( 'localhost' === $check['host'] || ( isset( $home['host'] ) && $home['host'] === $check['host'] ) ) {
    			return false;