Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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;
}
@keeneyemedia

This comment has been minimized.

Copy link

@keeneyemedia keeneyemedia commented Oct 22, 2015

Thank you!!

@mmedi005

This comment has been minimized.

Copy link

@mmedi005 mmedi005 commented Dec 13, 2015

This didnt work for me, any ideas?

@Exclutips

This comment has been minimized.

Copy link

@Exclutips Exclutips commented Mar 1, 2016

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

This comment has been minimized.

Copy link

@SqueezyDee SqueezyDee commented Jul 20, 2016

This does not work for me.

@UTF-8

This comment has been minimized.

Copy link

@UTF-8 UTF-8 commented Sep 26, 2016

Worked like a charm, thank you.

@Websomo

This comment has been minimized.

Copy link

@Websomo Websomo commented Dec 23, 2016

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

@anythingpixel

This comment has been minimized.

Copy link

@anythingpixel anythingpixel commented Apr 14, 2018

It worked. Thanks.

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