Created
March 8, 2016 09:55
-
-
Save roscabgdn/768535bad068c21ce8f6 to your computer and use it in GitHub Desktop.
Change the "Proceed to PayPal" button text in the WooCommerce checkout screen
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
/* | |
* Change the "Proceed to PayPal" button text in the WooCommerce checkout screen | |
*/ | |
add_filter( 'gettext', 'rb_custom_paypal_button', 20, 3 ); | |
function rb_custom_paypal_button( $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