W3cubDocs

/WordPress

apply_filters( ‘allowed_http_origin’, string $origin, string $origin_arg )

Changes the allowed HTTP origin result.

Parameters

$originstring
Origin URL if allowed, empty string if not.
$origin_argstring
Original origin string passed into is_allowed_http_origin function.

Source

return apply_filters( 'allowed_http_origin', $origin, $origin_arg );

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_origin