Fire wc_paying_customer for completed orders, too
This commit is contained in:
parent
84d03d3bf9
commit
0e1a926721
|
@ -252,6 +252,7 @@ function wc_paying_customer( $order_id ) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
add_action( 'woocommerce_payment_complete', 'wc_paying_customer' );
|
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.
|
* Checks if a user (by email or ID or both) has bought an item.
|
||||||
|
|
Loading…
Reference in New Issue