How do I remove or change the wording for the add_to_cart_text that displays in the Compare Products (Product Comparison Table)?
I tried using the code <?php
add_filter('single_add_to_cart_text', 'woo_custom_cart_button_text');
function woo_custom_cart_button_text() {
return __('My Button Text', 'woocommerce');
} in the class-wc-compare-functions.php of Woocommerce Compare Products Plugin and replace wording My button text with learn more. It didn't work.
Where would I put the code for the 'add-to-cart' that displays when I view the results of clicking to compare products.
You thoughts would be helpful. I have exhausted options to try.
Thank you.