Fire wc_paying_customer for completed orders, too

This commit is contained in:
Beka Rice 2019-04-29 13:06:32 -04:00
parent 84d03d3bf9
commit 0e1a926721
1 changed files with 1 additions and 0 deletions

View File

@ -252,6 +252,7 @@ function wc_paying_customer( $order_id ) {
}
}
add_action( 'woocommerce_payment_complete', 'wc_paying_customer' );
add_action( 'woocommerce_order_status_completed', 'wc_paying_customer' );
/**
* Checks if a user (by email or ID or both) has bought an item.