Skip to content

Instantly share code, notes, and snippets.

@seoindex
Last active January 3, 2017 15:05
Show Gist options
  • Save seoindex/94c2f5662bf8c5046e24606f11b04538 to your computer and use it in GitHub Desktop.
Save seoindex/94c2f5662bf8c5046e24606f11b04538 to your computer and use it in GitHub Desktop.
Cambiare il testo del pulsante "Procedi a PayPal" nella pagina di chechout
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