• Resolved mattiamariejulie

    (@mattiamariejulie)


    Hi!

    I’ve been searching for a couple of hours and tried a lot of hooks but nothing seems to work.
    What I am trying to do is completely remove the Woocommerce notices such as ‘product added to cart’, ‘no shipping options available’, etc.

    I’ve already tried these snippets and none seem to work:

    add_filter( ‘woocommerce_notice_types’, ‘__return_empty_array’ );
    add_filter( ‘wc_add_to_cart_message_html’, ‘__return_false’ );
    add_filter( ‘woocommerce_cart_item_removed_notice_type’, ‘__return_false’ );
    add_filter( ‘woocommerce_cart_no_shipping_available_html’, ‘__return_false’ );

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Disable Woocommerce notice’ is closed to new replies.