Version Description
October 12, 2017 =
Fixed: WC 3.2.0 compatibility.
Fixed: 'bewpi_skip_invoice_generation' filter parameter using order object instead of order total.
Download this release
Release Info
Developer | baaaaas |
Plugin | WooCommerce PDF Invoices |
Version | 2.9.7 |
Comparing to | |
See all releases |
Code changes from version 2.9.6 to 2.9.7
- bootstrap.php +3 -3
- includes/woocommerce-pdf-invoices.php +2 -2
- readme.txt +6 -1
bootstrap.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: WooCommerce PDF Invoices
|
4 |
* Plugin URI: https://wordpress.org/plugins/woocommerce-pdf-invoices
|
5 |
* Description: Automatically generate and attach customizable PDF Invoices to WooCommerce emails and connect with Dropbox, Google Drive, OneDrive or Egnyte.
|
6 |
-
* Version: 2.9.
|
7 |
* Author: Bas Elbers
|
8 |
* Author URI: http://wcpdfinvoices.com
|
9 |
* License: GPL-2.0+
|
@@ -17,9 +17,9 @@ defined( 'ABSPATH' ) or exit;
|
|
17 |
/**
|
18 |
* @deprecated instead use WPI_VERSION.
|
19 |
*/
|
20 |
-
define( 'BEWPI_VERSION', '2.9.
|
21 |
|
22 |
-
define( 'WPI_VERSION', '2.9.
|
23 |
|
24 |
/**
|
25 |
* Load WooCommerce PDF Invoices plugin.
|
3 |
* Plugin Name: WooCommerce PDF Invoices
|
4 |
* Plugin URI: https://wordpress.org/plugins/woocommerce-pdf-invoices
|
5 |
* Description: Automatically generate and attach customizable PDF Invoices to WooCommerce emails and connect with Dropbox, Google Drive, OneDrive or Egnyte.
|
6 |
+
* Version: 2.9.7
|
7 |
* Author: Bas Elbers
|
8 |
* Author URI: http://wcpdfinvoices.com
|
9 |
* License: GPL-2.0+
|
17 |
/**
|
18 |
* @deprecated instead use WPI_VERSION.
|
19 |
*/
|
20 |
+
define( 'BEWPI_VERSION', '2.9.7' );
|
21 |
|
22 |
+
define( 'WPI_VERSION', '2.9.7' );
|
23 |
|
24 |
/**
|
25 |
* Load WooCommerce PDF Invoices plugin.
|
includes/woocommerce-pdf-invoices.php
CHANGED
@@ -456,7 +456,7 @@ if ( ! class_exists( 'BE_WooCommerce_PDF_Invoices' ) ) {
|
|
456 |
wp_register_script( 'wc-enhanced-select', WC()->plugin_url() . '/assets/js/admin/wc-enhanced-select.js', array(
|
457 |
'jquery',
|
458 |
'jquery-ui-sortable',
|
459 |
-
'select2',
|
460 |
), WC()->version );
|
461 |
|
462 |
$screen = get_current_screen();
|
@@ -530,7 +530,7 @@ if ( ! class_exists( 'BE_WooCommerce_PDF_Invoices' ) ) {
|
|
530 |
}
|
531 |
|
532 |
// Skip invoice generation.
|
533 |
-
$skip = apply_filters( 'bewpi_skip_invoice_generation', false, $status, $order
|
534 |
if ( $skip ) {
|
535 |
return $attachments;
|
536 |
}
|
456 |
wp_register_script( 'wc-enhanced-select', WC()->plugin_url() . '/assets/js/admin/wc-enhanced-select.js', array(
|
457 |
'jquery',
|
458 |
'jquery-ui-sortable',
|
459 |
+
version_compare( WC()->version, '3.2.0', '>=' ) ? 'selectWoo' : 'select2',
|
460 |
), WC()->version );
|
461 |
|
462 |
$screen = get_current_screen();
|
530 |
}
|
531 |
|
532 |
// Skip invoice generation.
|
533 |
+
$skip = apply_filters( 'bewpi_skip_invoice_generation', false, $status, $order );
|
534 |
if ( $skip ) {
|
535 |
return $attachments;
|
536 |
}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link:
|
|
4 |
Tags: woocommerce pdf invoices, invoice, packing slips, delivery note, packing list, shipping list, generate, pdf, woocommerce, attachment, email, customer invoice, processing, vat, tax, sequential, number, dropbox, google drive, onedrive, egnyte, cloud, storage
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.8
|
7 |
-
Stable tag: 2.9.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -273,6 +273,11 @@ add_filter( 'wpi_template_name', 'change_template_based_on_order_language', 10,
|
|
273 |
|
274 |
== Changelog ==
|
275 |
|
|
|
|
|
|
|
|
|
|
|
276 |
= 2.9.6 - October 10, 2017 =
|
277 |
|
278 |
- Added: Filter 'wpi_skip_pdf_invoice_attachment' to skip PDF invoice email attachment.
|
4 |
Tags: woocommerce pdf invoices, invoice, packing slips, delivery note, packing list, shipping list, generate, pdf, woocommerce, attachment, email, customer invoice, processing, vat, tax, sequential, number, dropbox, google drive, onedrive, egnyte, cloud, storage
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.8
|
7 |
+
Stable tag: 2.9.7
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
273 |
|
274 |
== Changelog ==
|
275 |
|
276 |
+
= 2.9.7 - October 12, 2017 =
|
277 |
+
|
278 |
+
- Fixed: WC 3.2.0 compatibility.
|
279 |
+
- Fixed: 'bewpi_skip_invoice_generation' filter parameter using order object instead of order total.
|
280 |
+
|
281 |
= 2.9.6 - October 10, 2017 =
|
282 |
|
283 |
- Added: Filter 'wpi_skip_pdf_invoice_attachment' to skip PDF invoice email attachment.
|