allowed_http_origin filter-hookWP 3.4.0

Change the allowed HTTP origin result.

Usage

add_filter( 'allowed_http_origin', 'wp_kama_allowed_http_origin_filter', 10, 2 );

/**
 * Function for `allowed_http_origin` filter-hook.
 * 
 * @param string $origin     Origin URL if allowed, empty string if not.
 * @param string $origin_arg Original origin string passed into is_allowed_http_origin function.
 *
 * @return string
 */
function wp_kama_allowed_http_origin_filter( $origin, $origin_arg ){

	// filter...
	return $origin;
}
$origin(string)
Origin URL if allowed, empty string if not.
$origin_arg(string)
Original origin string passed into is_allowed_http_origin function.

Changelog

Since 3.4.0 Introduced.

Where the hook is called

is_allowed_http_origin()
allowed_http_origin
wp-includes/http.php 485
return apply_filters( 'allowed_http_origin', $origin, $origin_arg );

Where the hook is used in WordPress

Usage not found.