How to Stop Generating Invoices for Free Packages?
By default, GetPaid generates invoices for all packages. However, if you are using Free packages, you can optionally choose to disable invoice generation for free packages.
You need to have the Pricing Manager extension for GeoDirectory installed and activated in order to utilize the Packages feature.
How to Stop Generating Invoices for Free Packages?
Simply use the following code snippet to disable invoices for free packages:
add_action( 'getpaid_skip_invoice_email', function ( $skip, $type, $invoice ) { if ( $invoice->is_free() ) { return true; } return $skip; }, 10, 3 );