Mika MAtikainen

Apr 15, 2020 · 4 min read

How to Stop Generating Invoices for Free Packages in WooCommerce?

add_action(
    'woocommerce_getpaid_skip_invoice_email',
    function ($skip, $type, $invoice) {
        if ($invoice->is_free()) {
            return true;
        }
        return $skip;
    },
    10,
    3
);

Subscribe To Our Newsletter

Join our mailing list to receive the latest news and updates from our team.

You have Successfully Subscribed!

Share This