http_response

http_response

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('http_response') is found 2 times:

  • /wp-includes/class-wp-http.php line 462
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
         * @param array  $response    HTTP response.
         * @param array  $parsed_args HTTP request arguments.
         * @param string $url         The request URL.
         */
        return apply_filters( 'http_response', $response, $parsed_args, $url );
    }
     
    /**
     * Normalizes cookies for using in Requests.
     *
     * @since 4.6.0
  • /wp-includes/class-wp-http.php line 615
    611
    612
    613
    614
    615
    616
    617
    618
    619
    620
    621
            return $response;
        }
     
        /** This filter is documented in wp-includes/class-wp-http.php */
        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.

See this hook used in plugins: