apply_filters( 'allowed_http_origins', string[] $allowed_origins )
- Since
- 3.4.0
Changes the origin types allowed for HTTP requests.
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.}
$0string
Non-secure URL for admin origin.
$1string
Secure URL for admin origin.
$2string
Non-secure URL for home origin.
$3string
Secure URL for home origin.
Fired at · 1
wp-includes/http.php:464get_allowed_http_origins()
Source
View on Trac ↗View on GitHub ↗
458 * @type string $0 Non-secure URL for admin origin.459 * @type string $1 Secure URL for admin origin.460 * @type string $2 Non-secure URL for home origin.461 * @type string $3 Secure URL for home origin.462 * }463 */464 return apply_filters( 'allowed_http_origins', $allowed_origins );465}466 467/**468 * Determines if the HTTP origin is an authorized one.469 *470 * @since 3.4.0
History
Introduced in 3.4.0. Unchanged from 6.7.7 through 7.1.0.
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 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.