diff --git a/inc/cleantalk-integrations-by-hook.php b/inc/cleantalk-integrations-by-hook.php index 94f68b0ca..cb4a7b19f 100755 --- a/inc/cleantalk-integrations-by-hook.php +++ b/inc/cleantalk-integrations-by-hook.php @@ -135,7 +135,7 @@ 'ajax' => false ), 'EasyDigitalDownloads' => array( - 'hook' => array('edd_pre_process_register_form', 'edd_insert_user_args'), + 'hook' => array('edd_pre_process_register_form', 'edd_insert_user_args', 'edd_customer_pre_create'), 'setting' => 'forms__registrations_test', 'ajax' => false ), diff --git a/lib/Cleantalk/Antispam/Integrations/EasyDigitalDownloads.php b/lib/Cleantalk/Antispam/Integrations/EasyDigitalDownloads.php index 70ca95de2..c1b769176 100644 --- a/lib/Cleantalk/Antispam/Integrations/EasyDigitalDownloads.php +++ b/lib/Cleantalk/Antispam/Integrations/EasyDigitalDownloads.php @@ -13,8 +13,9 @@ public function getDataForChecking($argument) $this->user_data = $argument; if ( - Post::get('edd_action') === "user_register" || - !empty($argument['user_email']) + Post::getString('edd_action') === "user_register" || + !empty($argument['user_email']) || + Post::getString('edd-process-checkout-nonce') ) { /** * Filter for POST