Add action for hook woocommerce_created_customer
[MAILPOET-3483]
This commit is contained in:
@ -273,6 +273,11 @@ class Hooks {
|
||||
|
||||
public function setupWooCommerceUsers() {
|
||||
// WooCommerce Customers synchronization
|
||||
$this->wp->addAction(
|
||||
'woocommerce_created_customer',
|
||||
[$this->hooksWooCommerce, 'synchronizeRegisteredCustomer'],
|
||||
7
|
||||
);
|
||||
$this->wp->addAction(
|
||||
'woocommerce_new_customer',
|
||||
[$this->hooksWooCommerce, 'synchronizeRegisteredCustomer'],
|
||||
|
@ -72,6 +72,7 @@ class WooCommerce {
|
||||
$this->unsubscribeUsersFromSegment(); // remove leftover association
|
||||
break;
|
||||
case 'woocommerce_new_customer':
|
||||
case 'woocommerce_created_customer':
|
||||
$newCustomer = true;
|
||||
case 'woocommerce_update_customer':
|
||||
default:
|
||||
|
Reference in New Issue
Block a user