Core Function
View Source on Trac ↗ is_allowed_http_origin()
is_allowed_http_origin( mixed $origin = null ) Determines if the HTTP origin is an authorized one.
Parameters 1 required
| Name / Type | Description |
|---|---|
| (string | | null) $origin Origin URL. If not provided, the value of get_http_origin() is used. Required |
Return Value
(string)
Origin URL if allowed, empty string if not.
Function Information
Since Version
3.4.0
Source File
wp-includes/http.php
Advertisement