Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Modifica el texto «Añadir al carrito» en la página individual del producto
- function ys_woocommerce_custom_product_single_add_to_cart_text() {
- return __('Comprar ahora', 'texto-de-dominio');
- }
- add_filter('woocommerce_product_single_add_to_cart_text', 'ys_woocommerce_custom_product_single_add_to_cart_text');
- // Modifica el texto «Añadir al carrito» en los listados de productos (tienda, categorías, etc.)
- function ys_woocommerce_custom_product_add_to_cart_text() {
- return __('Comprar ahora', 'texto-de-dominio');
- }
- add_filter('woocommerce_product_add_to_cart_text', 'ys_woocommerce_custom_product_add_to_cart_text');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement