wphooks.info - http_origin

http_origin

(trunk - 5.0-alpha-42177)

The hook occurs in the following file:

wp-includes/http.php:
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
	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 );
}

/**
 * Retrieve list of allowed HTTP origins.
 *
 * @since 3.4.0
 *
 * @return array Array of origin URLs.
 */