Remove quotes from add to cart message
-
With WC 2.4.7, it brought back the quotation marks to the add to cart message. I need to remove these again due to my prints already having “Print Name” and double marks looks silly.
Here’s what code I have previously used and worked throughout many WC versions:
add_filter( 'wc_add_to_cart_message', 'wc_remove_added_to_cart_quotes', 10, 1 ); function wc_remove_added_to_cart_quotes( $message ) { return str_replace( '"', '', $message ); }
Tried to find what change was made to the message, but no joy. I’d appreciate any help in correcting this to look proper again. Thanks!
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Remove quotes from add to cart message’ is closed to new replies.