Wordpress - Woocommerece remove “Added to Cart” message

后端 未结 7 596
天命终不由人
天命终不由人 2021-01-18 15:32

I\'m looking to remove the wording and area that says \"Product Successfully Added to Cart\" after I add an item to the cart. I just want there to be nothing, no message an

7条回答
  •  暖寄归人
    2021-01-18 16:39

    Use one of these:

    Older version

    $woocommerce->clear_messages(); 
    

    Version 2.3

    wc_clear_notices();
    

提交回复
热议问题