Filter
rpress_paypal_allowed_redirect_hosts
On this page
Filters the hosts allowed for safe redirects to PayPal.
Runs in rpress_get_paypal_allowed_redirect_hosts. The default list covers the live and sandbox PayPal hosts including the IPN hosts. These hosts are added to the allowed_redirect_hosts filter so wp_safe_redirect can send buyers to PayPal.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$hosts | array | List of host names. |
Return value#
array. The list of host names.
Example#
function my_paypal_allowed_redirect_hosts( $hosts ) {
$hosts[] = 'pay.example.com';
return $hosts;
}
add_filter( 'rpress_paypal_allowed_redirect_hosts', 'my_paypal_allowed_redirect_hosts', 10, 1 );
Source#
Applied in:
includes/gateways/paypal-standard.php(line 290), inrpress_get_paypal_allowed_redirect_hosts()
See also#
allowed_redirect_hosts
Was this page helpful?
