allowed_http_origins filter-hookWP 3.4.0

Changes the origin types allowed for HTTP requests.

Usage

add_filter( 'allowed_http_origins', 'wp_kama_allowed_http_origins_filter' );

/**
 * Function for `allowed_http_origins` filter-hook.
 * 
 * @param string[] $allowed_origins Array of allowed HTTP origins.
 *
 * @return string[]
 */
function wp_kama_allowed_http_origins_filter( $allowed_origins ){

	// filter...
	return $allowed_origins;
}
$allowed_origins(string[])
Array of allowed HTTP origins.

Changelog

Since 3.4.0 Introduced.

Where the hook is called

get_allowed_http_origins()
allowed_http_origins
wp-includes/http.php 473
return apply_filters( 'allowed_http_origins', $allowed_origins );

Where the hook is used in WordPress

Usage not found.