As of version 1.9.1 of Paid Memberships Pro – PDF Invoices, there is a new filter added in that will allow developers to stop generating PDF invoices in certain cases.

In this short example, here is a code sample on how to prevent PDF invoices being generated for free Paid Memberships Pro orders.

You may follow this guide to add code snippets to your WordPress site safely.