Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Snippet para WooCommerce que modifica el texto de "Oferta" en los productos rebajados
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
You can’t perform that action at this time.