Skip to content

Commit

Permalink
WooCommerce integration warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
panoslyrakis committed Mar 6, 2019
1 parent 41a5a60 commit 01e4657
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions copier/integration/woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ function copier_woocommerce_order_status( $args ) {
if ( ! function_exists( 'WC' ) )
return $args;

$args['post_type'] = ( ! is_array( $args['post_type'] ) ) ? array( $args['post_type'] ) : $args['post_type'];

if ( ! in_array( 'shop_order', $args['post_type'] ) )
return $args;

Expand Down Expand Up @@ -86,6 +88,8 @@ function copier_woocommerce_follow_up_email_status( $args ) {
if ( ! function_exists( 'WC' ) )
return $args;

$args['post_type'] = ( ! is_array( $args['post_type'] ) ) ? array( $args['post_type'] ) : $args['post_type'];

if ( ! in_array( 'follow_up_email', $args['post_type'] ) )
return $args;

Expand Down

0 comments on commit 01e4657

Please sign in to comment.