is_allowed_http_origin

Advertisement

Summery Summery

Determines if the HTTP origin is an authorized one.

Syntax Syntax

is_allowed_http_origin( null|string $origin = null )

Parameters Parameters

$origin

(null|string) (Optional) Origin URL. If not provided, the value of get_http_origin() is used.

Default value: null

Return Return

(string) Origin URL if allowed, empty string if not.

Source Source

File: wp-includes/http.php


			

Advertisement

Changelog Changelog

Changelog
Version Description
3.4.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.