Created
August 27, 2020 15:17
-
-
Save taciara/66da2860d0e473ab22e94ef88a87758b to your computer and use it in GitHub Desktop.
Como mudar o botão "Adicionar"ou "Ver Opções" no WooCommerce para "Comprar agora"
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
| <?php | |
| /* Coloque este código no teu functions.php */ | |
| //Mudar o Adicionar para Comprar agora no WooCommerce | |
| add_filter( 'woocommerce_product_single_add_to_cart_text', 'dmw_site_add_to_cart_text' ); | |
| function dmw_site_add_to_cart_text() { | |
| return __( 'Comprar agora', 'woocommerce' ); | |
| } | |
| //Mudar o Ver Opções para Comprar agora no WooCommerce | |
| add_filter( 'woocommerce_product_add_to_cart_text', 'dmw_site_view_option_add_to_cart_text' ); | |
| function dmw_site_view_option_add_to_cart_text() { | |
| return __( 'Comprar agora', 'woocommerce' ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment