Skip to content

Instantly share code, notes, and snippets.

@MindyPostoff
Last active November 14, 2019 19:05
Show Gist options
  • Save MindyPostoff/a10148daa110119b262f to your computer and use it in GitHub Desktop.
Save MindyPostoff/a10148daa110119b262f to your computer and use it in GitHub Desktop.
Change "Proceed to PayPal" Text on Checkout Button in WooCommerce
/* Change the "Proceed to PayPal" button text in the WooCommerce checkout screen
* Add this to your theme's functions.php file
*/
add_filter( 'gettext', 'custom_paypal_button_text', 20, 3 );
function custom_paypal_button_text( $translated_text, $text, $domain ) {
switch ( $translated_text ) {
case 'Proceed to PayPal' :
$translated_text = __( 'NEW BUTTON TEXT', 'woocommerce' );
break;
}
return $translated_text;
}
@mmedi005
Copy link

This didnt work for me, any ideas?

@Exclutips
Copy link

Use this plugin https://goo.gl/yKuUuq
or

add_filter( 'woocommerce_order_button_text', 'woo_rupom_order_button_text' ); function woo_rupom_order_button_text() { return __( 'NEW BUTTON TEXT' , 'woocommerce' ); }

@SqueezyDee
Copy link

This does not work for me.

@UTF-8
Copy link

UTF-8 commented Sep 26, 2016

Worked like a charm, thank you.

@Websomo
Copy link

Websomo commented Dec 23, 2016

Worked great on the Divi theme, but put it in the core/functions location not functions fyi

@anythingpixel
Copy link

It worked. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment