woocommerce_add_to_cart_notice_type

woocommerce_add_to_cart_notice_type

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('woocommerce_add_to_cart_notice_type') is found 1 times:

  • /includes/wc-cart-functions.php line 141
     
    	if ( $return ) {
    		return $message;
    	} else {
    		wc_add_notice( $message, apply_filters( 'woocommerce_add_to_cart_notice_type', 'success' ) );
    	}
    }
    
    /**
     * Comma separate a list of item names, and replace final comma with 'and'.
     *