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() {
// WooCommerce Customers synchronization
$this->wp->addAction(
'woocommerce_created_customer',
[$this->hooksWooCommerce, 'synchronizeRegisteredCustomer'],
7
);
$this->wp->addAction(
'woocommerce_new_customer',
[$this->hooksWooCommerce, 'synchronizeRegisteredCustomer'],