http_origin filter-hookWP 3.4.0

Change the origin of an HTTP request.

Usage

add_filter( 'http_origin', 'wp_kama_http_origin_filter' );

/**
 * Function for `http_origin` filter-hook.
 * 
 * @param string $origin The original origin for the request.
 *
 * @return string
 */
function wp_kama_http_origin_filter( $origin ){

	// filter...
	return $origin;
}
$origin(string)
The original origin for the request.

Changelog

Since 3.4.0 Introduced.

Where the hook is called

get_http_origin()
http_origin
wp-includes/http.php 405
return apply_filters( 'http_origin', $origin );

Where the hook is used in WordPress

Usage not found.