Created
May 23, 2017 20:05
-
-
Save tavomak/bc527983e190cdc98829386c189dbfbf to your computer and use it in GitHub Desktop.
Cambiar Los encabezados del checkout de woocommerce
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
//Detalles de facturación | |
function wc_billing_field_strings( $translated_text, $text, $domain ) { | |
switch ( $translated_text ) { | |
case 'Detalles de facturación' : | |
$translated_text = __( 'Nuevo Encabezado', 'woocommerce' ); | |
break; | |
} | |
return $translated_text; | |
} | |
add_filter( 'gettext', 'wc_billing_field_strings', 20, 3 ); | |
//Otra dirección de envio | |
function wc_shipping_field_strings( $translated_text, $text, $domain ) { | |
switch ( $translated_text ) { | |
case '¿Enviar a una dirección diferente?' : | |
$translated_text = __( 'Nuevo Encabezado', 'woocommerce' ); | |
break; | |
} | |
return $translated_text; | |
} | |
add_filter( 'gettext', 'wc_shipping_field_strings', 20, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment