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