Skip to content

Instantly share code, notes, and snippets.

@tavomak
Created May 23, 2017 20:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tavomak/bc527983e190cdc98829386c189dbfbf to your computer and use it in GitHub Desktop.
Save tavomak/bc527983e190cdc98829386c189dbfbf to your computer and use it in GitHub Desktop.
Cambiar Los encabezados del checkout de woocommerce
//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