Filter
rpress_paypal_uri
On this page
Filters the PayPal URL used for checkout or IPN verification.
Runs at the end of rpress_get_paypal_redirect. The URL points to the live or sandbox PayPal host depending on test mode, and to the IPN host when $ipn is true. When $ipn is false the scheme depends on is_ssl and $ssl_check.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$paypal_uri | string | PayPal URL. |
$ssl_check | bool | Whether the scheme depends on is_ssl. |
$ipn | bool | Whether the URL is for IPN verification. |
Return value#
string. The PayPal URL.
Example#
function my_paypal_uri( $paypal_uri, $ssl_check, $ipn ) {
return $paypal_uri;
}
add_filter( 'rpress_paypal_uri', 'my_paypal_uri', 10, 3 );
Source#
Applied in:
includes/gateways/paypal-standard.php(line 1861), inrpress_get_paypal_redirect()
See also#
Was this page helpful?
