allowed_http_origin WordPress Filter Hook
The allowed_http_origin hook allows you to specify which domains are allowed to access your Wordpress site. This is useful for security purposes, as it can help to prevent cross-site scripting attacks.
apply_filters( 'allowed_http_origin', string $origin , string $origin_arg ) #
Change the allowed HTTP origin result.
Parameters
- $origin
(string)Origin URL if allowed, empty string if not.
- $origin_arg
(string)Original origin string passed into is_allowed_http_origin function.
Source
File: wp-includes/http.php
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |