{"id":466,"date":"2025-03-20T17:26:59","date_gmt":"2025-03-20T17:26:59","guid":{"rendered":"http:\/\/documentation.wpgetpaid.com\/?post_type=gd_place&#038;p=466"},"modified":"2025-03-26T14:48:57","modified_gmt":"2025-03-26T14:48:57","slug":"how-to-stop-generating-invoices-for-free-packages","status":"publish","type":"gd_place","link":"https:\/\/wpgetpaid.com\/documentation\/article\/code-snippets\/how-to-stop-generating-invoices-for-free-packages\/","title":{"rendered":"How to Stop Generating Invoices for Free Packages?"},"content":{"rendered":"\n<p>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.&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-blockstrap-blockstrap-widget-alert d-flex align-items-center fade show alert alert-info mb-3\" role=\"alert\"><span class=\"fas fa-info-circle me-2\"><\/span><span class=\"flex-grow-1\">You need to have the <a href=\"https:\/\/wpgeodirectory.com\/downloads\/pricing-manager\/\">Pricing Manager<\/a> extension for GeoDirectory installed and activated in order to utilize the Packages feature.This is some information you should read<\/span><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">How to Stop Generating Invoices for Free Packages?<\/h2>\n\n\n\n<p>Use the following code snippet to disable invoices for free packages:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-php\">add_action( \n\t&#039;getpaid_skip_invoice_email&#039;, \n\tfunction ( $skip, $type, $invoice ) {  \t\n\t\tif ( $invoice-&gt;is_free() ) { \t\n\t\t\treturn true; \n\t\t\t}  \n\t\treturn $skip; \n\t\t}, \n\t10, \n\t3 \n);<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<div class=\"wp-block-blockstrap-blockstrap-widget-alert d-flex align-items-center fade show alert alert-info mb-3\" role=\"alert\"><span class=\"fas fa-info-circle me-2\"><\/span><span class=\"flex-grow-1\">We recommend using the <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/useful-plugins\/code-snippets-plugin\/\" target=\"_blank\">Code Snippets<\/a> plugin to add snippets to your site.<\/span><\/div>\n","protected":false},"excerpt":{"rendered":"<p>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.&nbsp; How to Stop Generating Invoices for Free Packages? Use the following code snippet to disable invoices for free packages:&nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[302,303,304],"article\/categories":[211,221],"class_list":["post-466","gd_place","type-gd_place","status-publish","hentry","gd_place_tags-pricing-manager","gd_place_tags-free-packages","gd_place_tags-disable-invoices","gd_placecategory-tips-tricks-more","gd_placecategory-code-snippets"],"_links":{"self":[{"href":"https:\/\/wpgetpaid.com\/documentation\/wp-json\/wp\/v2\/article\/466","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpgetpaid.com\/documentation\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/wpgetpaid.com\/documentation\/wp-json\/wp\/v2\/types\/gd_place"}],"author":[{"embeddable":true,"href":"https:\/\/wpgetpaid.com\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgetpaid.com\/documentation\/wp-json\/wp\/v2\/comments?post=466"}],"version-history":[{"count":0,"href":"https:\/\/wpgetpaid.com\/documentation\/wp-json\/wp\/v2\/article\/466\/revisions"}],"wp:attachment":[{"href":"https:\/\/wpgetpaid.com\/documentation\/wp-json\/wp\/v2\/media?parent=466"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgetpaid.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=466"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgetpaid.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=466"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}