Created
April 22, 2021 06:47
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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