apply_filters( 'allowed_http_origins', string[] $allowed_origins )
- Since
- 3.4.0
Changes the origin types allowed for HTTP requests.
Compatibility
- WordPress
- since 3.4.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$allowed_originsstring[]- { Array of default allowed HTTP origins.
@type string $0 Non-secure URL for admin origin.
@type string $1 Secure URL for admin origin.
@type string $2 Non-secure URL for home origin.
@type string $3 Secure URL for home origin.
}$0stringNon-secure URL for admin origin.$1stringSecure URL for admin origin.$2stringNon-secure URL for home origin.$3stringSecure URL for home origin.
Where this hook fires · 1
wp-includes/http.php:464get_allowed_http_origins()
Source code
* @type string $0 Non-secure URL for admin origin. * @type string $1 Secure URL for admin origin. * @type string $2 Non-secure URL for home origin. * @type string $3 Secure URL for home origin. * } */ return apply_filters( 'allowed_http_origins', $allowed_origins );} /** * Determines if the HTTP origin is an authorized one. * * @since 3.4.0Changelog
Introduced in 3.4.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.7.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.