WooCommerce – Store Exporter - Version 2.3.1

Version Description

  • Fixed: Private Products being included in default Product exports (thanks @golfball-uhu)
Download this release

Release Info

Developer visser
Plugin Icon 128x128 WooCommerce – Store Exporter
Version 2.3.1
Comparing to
See all releases

Code changes from version 2.3 to 2.3.1

Files changed (3) hide show
  1. exporter.php +3 -3
  2. includes/product.php +5 -2
  3. readme.txt +4 -1
exporter.php CHANGED
@@ -3,16 +3,16 @@
3
  * Plugin Name: WooCommerce - Store Exporter
4
  * Plugin URI: http://www.visser.com.au/woocommerce/plugins/exporter/
5
  * Description: Export store details out of WooCommerce into simple formatted files (e.g. CSV, TSV, Excel formats including XLS and XLSX, XML, etc.)
6
- * Version: 2.3
7
  * Author: Visser Labs
8
- * Author URI: http://www.visser.com.au/about/
9
  * License: GPL2
10
  *
11
  * Text Domain: woocommerce-exporter
12
  * Domain Path: /languages/
13
  *
14
  * WC requires at least: 2.3
15
- * WC tested up to: 3.7.1
16
  */
17
 
18
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
  * Plugin Name: WooCommerce - Store Exporter
4
  * Plugin URI: http://www.visser.com.au/woocommerce/plugins/exporter/
5
  * Description: Export store details out of WooCommerce into simple formatted files (e.g. CSV, TSV, Excel formats including XLS and XLSX, XML, etc.)
6
+ * Version: 2.3.1
7
  * Author: Visser Labs
8
+ * Author URI: http://www.visser.com.au/solutions/
9
  * License: GPL2
10
  *
11
  * Text Domain: woocommerce-exporter
12
  * Domain Path: /languages/
13
  *
14
  * WC requires at least: 2.3
15
+ * WC tested up to: 3.8
16
  */
17
 
18
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
includes/product.php CHANGED
@@ -496,14 +496,17 @@ function woo_ce_get_products( $args = array() ) {
496
  if( isset( $args['product_order'] ) )
497
  $order = $args['product_order'];
498
  }
499
- $post_type = array( 'product', 'product_variation' );
 
 
 
500
  $args = array(
501
  'post_type' => $post_type,
502
  'orderby' => $orderby,
503
  'order' => $order,
504
  'offset' => $offset,
505
  'posts_per_page' => $limit_volume,
506
- 'post_status' => woo_ce_post_statuses(),
507
  'fields' => 'ids',
508
  'suppress_filters' => false
509
  );
496
  if( isset( $args['product_order'] ) )
497
  $order = $args['product_order'];
498
  }
499
+
500
+ $post_type = apply_filters( 'woo_ce_get_products_post_type', array( 'product', 'product_variation' ) );
501
+ $post_status = apply_filters( 'woo_ce_get_products_status', array( 'publish', 'pending', 'draft', 'future' ) );
502
+
503
  $args = array(
504
  'post_type' => $post_type,
505
  'orderby' => $orderby,
506
  'order' => $order,
507
  'offset' => $offset,
508
  'posts_per_page' => $limit_volume,
509
+ 'post_status' => woo_ce_post_statuses( $post_status, true ),
510
  'fields' => 'ids',
511
  'suppress_filters' => false
512
  );
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: https://www.visser.com.au/donations/
5
  Tags: woocommerce, export, products, sales, orders, coupons, users, subscriptions, csv
6
  Requires at least: 2.9.2
7
  Tested up to: 5.2.4
8
- Stable tag: 2.3
9
  License: GPLv2 or later
10
 
11
  Export store details out of WooCommerce into simple formatted files (e.g. CSV, XML, Excel 2007, XLS, etc.).
@@ -154,6 +154,9 @@ If you have any problems, questions or suggestions please create a topic here on
154
 
155
  == Changelog ==
156
 
 
 
 
157
  = 2.3 =
158
  * Fixed: Export notices not saving state
159
  * Fixed: Donate notice blocking tab navigation
5
  Tags: woocommerce, export, products, sales, orders, coupons, users, subscriptions, csv
6
  Requires at least: 2.9.2
7
  Tested up to: 5.2.4
8
+ Stable tag: 2.3.1
9
  License: GPLv2 or later
10
 
11
  Export store details out of WooCommerce into simple formatted files (e.g. CSV, XML, Excel 2007, XLS, etc.).
154
 
155
  == Changelog ==
156
 
157
+ = 2.3.1 =
158
+ * Fixed: Private Products being included in default Product exports (thanks @golfball-uhu)
159
+
160
  = 2.3 =
161
  * Fixed: Export notices not saving state
162
  * Fixed: Donate notice blocking tab navigation