WordPress at a glance
filter is not described

allowed_http_origins filter-hook . WP 3.4.0

Change the origin types allowed for HTTP requests.

Usage

add_filter( 'allowed_http_origins', 'filter_function_name_1718' );
function filter_function_name_1718( $allowed_origins ){
	// filter...

	return $allowed_origins;
}
$allowed_origins(string[])

Array of default allowed HTTP origins.

  • $0 (string)
    Non-secure URL for admin origin.

  • $1 (string)
    Secure URL for admin origin.

  • $2 (string)
    Non-secure URL for home origin.

  • $3 (string)
    Secure URL for home origin.

Changelog

Since 3.4.0 Introduced.

Where the hook is called

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

Where in WP core the hook is used

Usage not found!