Skip to content
Docs
Get RestroPress

Filter

rpress_paypal_uri

Updated
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#

ParameterTypeDescription
$paypal_uristringPayPal URL.
$ssl_checkboolWhether the scheme depends on is_ssl.
$ipnboolWhether 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), in rpress_get_paypal_redirect()

See also#

Was this page helpful?