apply_filters( 'um_allowed_redirect_hosts', $additional_hosts, $hosts ) → {array}
Filters change allowed hosts. When wp_safe_redirect()
function is used for the Ultimate Member frontend redirects.
Parameters:
Name | Type | Description |
---|---|---|
$additional_hosts |
array | Allowed hosts. |
$hosts |
array | Default hosts. |
- Since:
- 2.6.8
- Source:
Returns:
Allowed hosts.
- Type
- array
Example
function my_um_allowed_redirect_hosts( $additional_hosts, $hosts ) {
// your code here
return $allowed_hosts;
}
add_filter( 'um_allowed_redirect_hosts', 'my_um_allowed_redirect_hosts', 10, 2 );