Created
July 7, 2016 12:42
-
-
Save OscarAbadFolgueira/c8fb5b982c52ca6a860165ae0af94014 to your computer and use it in GitHub Desktop.
Snippet para WooCommerce que modifica el texto de "Oferta" en los productos rebajados
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( 'woocommerce_sale_flash', 'dinapyme_wc_modificar_texto_oferta' ); | |
function dinapyme_wc_modificar_texto_oferta( $texto ) { | |
//cabia el valor del texto original 'Sale!' de WooCommerce por el texto '¡Promoción!' | |
return str_replace( __( 'Sale!', 'woocommerce' ), __( '¡Promoción!', 'woocommerce' ), $texto ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment