W3cubDocs

/WordPress

apply_filters( ‘allowed_http_origins’, string[] $allowed_origins )

Changes the origin types allowed for HTTP requests.

Parameters

$allowed_originsstring[]
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.

Source

return apply_filters( 'allowed_http_origins', $allowed_origins );

Changelog

Version Description
3.4.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/allowed_http_origins