baselbers / woocommerce-pdf-invoices

Automatically generate and attach customizable PDF Invoices to WooCommerce emails and connect with Dropbox, Google Drive, OneDrive or Egnyte.
http://wcpdfinvoices.com
GNU General Public License v3.0
73 stars 40 forks source link

Invoice generation skipped if tick box is true #267

Open Shinyshark1 opened 4 years ago

Shinyshark1 commented 4 years ago

image

Invoice generation is skipped in the premium version if the above tickbox is set to true.

  public static function skip_invoice_generation( $skip, $status, $order ) {
      if ( ! WPI()->get_option( 'premium', 'request_invoice' ) ) {
          return $skip;
      }