While using Easy Digital Downloads and PayPal as your payment gateway, customers are sent to PayPal to complete their purchase. If you aren’t using a PayPal solution that auto returns customers to your website, you will most likely want to change the button text on PayPal’s purchase confirmation page.

By default it uses your site’s title from settings → general, but this isn’t very descriptive at all. Although the customer will receive a payment confirmation email with their download links, we want them to return to our website. In the following code snippet, we’ll change the button’s text from our default site title, to “Return to our site to complete your purchase”.


Paste the following into your child theme’s functions.php or a custom plugin.


Comments are closed.