On this page
apply_filters( 'allowed_http_origins', string[] $allowed_origins )
Change the origin types allowed for HTTP requests.
Parameters
$allowed_originsstring[]-
Array of default allowed HTTP origins.
- string
Non-secure URL for admin origin.
1stringSecure URL for admin origin.2stringNon-secure URL for home origin.3stringSecure URL for home origin.
- string
Source
File: wp-includes/http.php. View all references
return apply_filters( 'allowed_http_origins', $allowed_origins );
Related
Used By
| Used By | Description |
|---|---|
| get_allowed_http_origins() wp-includes/http.php | Retrieve list of allowed HTTP origins. |
Changelog
| Version | Description |
|---|---|
| 3.4.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/allowed_http_origins