allowed_http_origins filter-hook . WP 3.4.0
Change the origin types allowed for HTTP requests.
Usage
add_filter( 'allowed_http_origins', 'filter_function_name_5889' ); function filter_function_name_5889( $allowed_origins ){ // filter... return $allowed_origins; }
- $allowed_origins(string[])
Array of default allowed HTTP origins.
-
0(string)
Non-secure URL for admin origin. -
1(string)
Secure URL for admin origin. -
2(string)
Non-secure URL for home origin. - 3(string)
Secure URL for home origin.
-
Changelog
Since 3.4.0 | Introduced. |
Where the hook is called
allowed_http_origins
wp-includes/http.php 442
return apply_filters( 'allowed_http_origins', $allowed_origins );