http_origin WordPress Filter Hook
The http_origin hook allows you to add a specific HTTP header to requests made to your WordPress site. This can be useful for sites that need to make sure all requests are coming from a specific domain, or for security purposes.
apply_filters( 'http_origin', string $origin ) #
Change the origin of an HTTP request.
Parameters
- $origin
(string)The original origin for the request.
Source
File: wp-includes/http.php
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |