is_allowed_http_origin
is_allowed_http_origin ( $origin = null )
Parameters:- (string|null) origin Origin URL. If not provided, the value of get_http_origin() is used.
Returns:- (string) Origin URL if allowed, empty string if not.
Defined at: - Introduced in WordPress: 3.4.0
- Deprecated in WordPress: —
Description
Determines if the HTTP origin is an authorized one.