Last active
January 3, 2017 15:05
-
-
Save seoindex/94c2f5662bf8c5046e24606f11b04538 to your computer and use it in GitHub Desktop.
Cambiare il testo del pulsante "Procedi a PayPal" nella pagina di chechout
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
add_filter( 'gettext', 'text_paypal_chechout', 20, 3 ); | |
function text_paypal_chechout( $translated_text, $text, $domain ) { | |
switch ( $translated_text ) { | |
case 'Procedi a PayPal' : | |
$translated_text = __( 'ACQUISTA ORA', 'woocommerce' ); | |
break; | |
} | |
return $translated_text; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment