Skip to content

Instantly share code, notes, and snippets.

@wtmujeebu
Created April 22, 2021 06:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wtmujeebu/c26b9d88627b04f7860b5603f34e7f63 to your computer and use it in GitHub Desktop.
Save wtmujeebu/c26b9d88627b04f7860b5603f34e7f63 to your computer and use it in GitHub Desktop.
Change Proceed to PayPal button text - PayPal Express Checkout for WooCommerce by WebToffee
<?php
add_filter( 'gettext', 'wt_custom_paypal_button_text', 20, 3 );
function wt_custom_paypal_button_text( $translated_text, $text, $domain ) {
switch ( $translated_text ) {
case 'Proceed to PayPal' :
$translated_text = __( 'Your new Paypal button text here', 'woocommerce' );
break;
}
return $translated_text;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment