apply_filters( 'allowed_http_origins', string[] $allowed_origins )
Change the origin types allowed for HTTP requests.
Parameters
-
$allowed_origins
string[] -
Array of default allowed HTTP origins.
- stringNon-secure URL for admin origin.
1
stringSecure URL for admin origin.2
stringNon-secure URL for home origin.3
stringSecure URL for home origin.
- string
Source
File: wp-includes/http.php
.
View all references
return apply_filters( 'allowed_http_origins', $allowed_origins );
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |