I used the add to cart message hook in Woocommerce to edit the text and remove some classes from certain buttons. It seems this hook is now deprecated in Woocommerce 2.1 and I can't find an alternative.
I want to remove the 'button' class from the 'Continue Shopping' button. This class gets defined in the Woocommerce core which I want to leave unedited for proper future updates.
The line I'm trying to edit is located in woocommerce/includes/wc-cart-functions.php line 94.
$message = sprintf('<a href="%s" class="button wc-forward">%s</a> %s', $return_to, __( 'Continue Shopping', 'woocommerce' ), $added_text );
Did anyone find a proper alternative for this hook yet? Thanks in advance!
This worked for me
Edited: Thanks for the correction Kaarel Kaspar
Woocommerce 2.3+,
this could be a solution. please change if you have better ways or ideas:
the filter-name has changed with the 2.1-version to "wc_add_to_cart_message"
hope it helps. cheers