Add action for hook woocommerce_created_customer

[MAILPOET-3483]
This commit is contained in:
Jan Lysý
2021-04-28 13:43:41 +02:00
committed by Veljko V
parent 0ed3412667
commit be589e79bd
2 changed files with 6 additions and 0 deletions

View File

@ -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'],

View File

@ -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: