Skip to content
Docs
Get RestroPress

Filter

rpress_paypal_image_url

Updated
On this page

Filters the image URL shown on the PayPal checkout page.

Runs in rpress_get_paypal_image_url with the value of the paypal_image_url setting, trimmed. A non-empty result is sent to PayPal as the image_url argument.

Parameters#

ParameterTypeDescription
$image_urlstringImage URL, or an empty string.

Return value#

string. The image URL.

Example#

function my_paypal_image_url( $image_url ) {
	if ( '' === $image_url ) {
		return get_site_icon_url( 150 );
	}
	return $image_url;
}
add_filter( 'rpress_paypal_image_url', 'my_paypal_image_url', 10, 1 );

Source#

Applied in:

  • includes/gateways/paypal-standard.php (line 1872), in rpress_get_paypal_image_url()

See also#

Was this page helpful?