pre_http_request

pre_http_request

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.4.3

do_action('pre_http_request') is found 1 times:

  • /wp-includes/class-wp-http.php line 258
    		 * @param false|array|WP_Error $response    A preemptive return value of an HTTP request. Default false.
    		 * @param array                $parsed_args HTTP request arguments.
    		 * @param string               $url         The request URL.
    		 */
    		$pre = apply_filters( 'pre_http_request', false, $parsed_args, $url );
    
    		if ( false !== $pre ) {
    			return $pre;
    		}
    
    		if ( function_exists( 'wp_kses_bad_protocol' ) ) {
    

See this hook used in plugins: