Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter('woocommerce_product_add_to_cart_text', 'my_custom_add_to_cart_text', 10, 2);
- function my_custom_add_to_cart_text($text, $product) {
- if ($product->is_type('variable')) {
- $text = 'Купи'; // Тук поставете желания от вас текст
- }
- return $text;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement