wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



get_http_origin › WordPress Function

Seit3.4.0
Veraltetn/v
get_http_origin ( Keine Parameter )
Gibt zurück:
  • (string) URL of the origin. Empty string if no origin.
Definiert in:
Codex:

Get the HTTP Origin of the current request.



Quellcode

function get_http_origin() {
	$origin = '';
	if ( ! empty( $_SERVER['HTTP_ORIGIN'] ) ) {
		$origin = $_SERVER['HTTP_ORIGIN'];
	}

	/**
	 * Change the origin of an HTTP request.
	 *
	 * @since 3.4.0
	 *
	 * @param string $origin The original origin for the request.
	 */
	return apply_filters( 'http_origin', $origin );
}