cwcfp_export_order_statuses

If you wish to adjust the order statuses that are included in the export, we have included a filter (cwcfp_export_order_statuses) that allows you to do this.

The filter is passed the order statuses variable $orders_statuses = "'wc-completed', 'wc-processing', 'wc-on-hold'";

Your use of the filter will need to return a string formatted in a similar manner (note the position of the double and single quotes).

Example:

add_filter( 'cwcfp_export_order_statuses', 'my_export_order_statuses' ); 
function my_export_order_statuses( $orders_statuses ){
     $orders_statuses = "'wc-completed'";  //Just get completed orders
     return $orders_statuses;
 }

A full list of order statuses that can be used are listed below:

  • wc-pending
  • wc-processing
  • wc-on-hold
  • wc-completed
  • wc-canceled
  • wc-refunded
  • wc-failed