WordPress at Your Fingertips
filter is not described

allowed_http_origins filter-hook . WP 3.4.0

Change the origin types allowed for HTTP requests.


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

	return $allowed_origins;

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.

Where the hook is called

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

Where in WP core the hook is used WordPress

Usage not found.