WooCommerce PDF Invoices & Packing Slips - Version 2.3.3

Version Description

  • Tweak: Move filter to override order object to document level (rather than per email)
Download this release

Release Info

Developer pomegranate
Plugin Icon 128x128 WooCommerce PDF Invoices & Packing Slips
Version 2.3.3
Comparing to
See all releases

Code changes from version 2.3.2 to 2.3.3

includes/class-wcpdf-main.php CHANGED
@@ -56,7 +56,6 @@ class Main {
56
  * Attach PDF to WooCommerce email
57
  */
58
  public function attach_pdf_to_email ( $attachments, $email_id, $order, $email = null ) {
59
- $order = apply_filters( 'wpo_wcpdf_email_attachment_order', $order, $email );
60
  // check if all variables properly set
61
  if ( !is_object( $order ) || !isset( $email_id ) ) {
62
  return $attachments;
@@ -108,7 +107,7 @@ class Main {
108
 
109
  try {
110
  // prepare document
111
- $document = wcpdf_get_document( $document_type, $order, true );
112
  if ( !$document ) { // something went wrong, continue trying with other documents
113
  continue;
114
  }
56
  * Attach PDF to WooCommerce email
57
  */
58
  public function attach_pdf_to_email ( $attachments, $email_id, $order, $email = null ) {
 
59
  // check if all variables properly set
60
  if ( !is_object( $order ) || !isset( $email_id ) ) {
61
  return $attachments;
107
 
108
  try {
109
  // prepare document
110
+ $document = wcpdf_get_document( $document_type, apply_filters( 'wpo_wcpdf_email_attachment_order', $order, $email, $document_type ), true );
111
  if ( !$document ) { // something went wrong, continue trying with other documents
112
  continue;
113
  }
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: woocommerce, pdf, invoices, packing slips, print, delivery notes, invoice,
5
  Requires at least: 3.5
6
  Tested up to: 5.2
7
  Requires PHP: 5.3
8
- Stable tag: 2.3.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -102,6 +102,9 @@ There's a setting on the Status tab of the settings page that allows you to togg
102
 
103
  == Changelog ==
104
 
 
 
 
105
  = 2.3.2 =
106
  * Fix: Load enhanced selection styles on settings page
107
  * Fix: WC Bookings email attachment
5
  Requires at least: 3.5
6
  Tested up to: 5.2
7
  Requires PHP: 5.3
8
+ Stable tag: 2.3.3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
102
 
103
  == Changelog ==
104
 
105
+ = 2.3.3 =
106
+ * Tweak: Move filter to override order object to document level (rather than per email)
107
+
108
  = 2.3.2 =
109
  * Fix: Load enhanced selection styles on settings page
110
  * Fix: WC Bookings email attachment
woocommerce-pdf-invoices-packingslips.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WooCommerce PDF Invoices & Packing Slips
4
  * Plugin URI: http://www.wpovernight.com
5
  * Description: Create, print & email PDF invoices & packing slips for WooCommerce orders.
6
- * Version: 2.3.2
7
  * Author: Ewout Fernhout
8
  * Author URI: http://www.wpovernight.com
9
  * License: GPLv2 or later
@@ -21,7 +21,7 @@ if ( !class_exists( 'WPO_WCPDF' ) ) :
21
 
22
  class WPO_WCPDF {
23
 
24
- public $version = '2.3.2';
25
  public $plugin_basename;
26
  public $legacy_mode;
27
 
3
  * Plugin Name: WooCommerce PDF Invoices & Packing Slips
4
  * Plugin URI: http://www.wpovernight.com
5
  * Description: Create, print & email PDF invoices & packing slips for WooCommerce orders.
6
+ * Version: 2.3.3
7
  * Author: Ewout Fernhout
8
  * Author URI: http://www.wpovernight.com
9
  * License: GPLv2 or later
21
 
22
  class WPO_WCPDF {
23
 
24
+ public $version = '2.3.3';
25
  public $plugin_basename;
26
  public $legacy_mode;
27