Created
July 26, 2016 19:56
-
-
Save nucab/3966b585d6a185b0ab76338404214d7a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/** | |
* Custom PayPal button text | |
* | |
*/ | |
add_filter( 'gettext', 'ld_custom_paypal_button_text', 20, 3 ); | |
function ld_custom_paypal_button_text( $translated_text, $text, $domain ) { | |
switch ( $translated_text ) { | |
case 'Proceed to PayPal' : | |
$translated_text = __( 'Buy Now', 'woocommerce' ); | |
break; | |
} | |
return $translated_text; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment