Filter
rpress_paypal_image_url
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#
| Parameter | Type | Description |
|---|---|---|
$image_url | string | Image 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), inrpress_get_paypal_image_url()
See also#
Was this page helpful?
