-
-
Save Sanabria/0c2f66e355ffaa03a2ca3e273e1a5920 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