add_action("wpdiscuz_before_wp_new_comment", function($commentdata){ if (!empty($commentdata["comment_author_email"]) && empty($commentdata["user_id"])) { $is_user_exist = get_user_by("email", sanitize_text_field($commentdata["comment_author_email"])); if ($is_user_exist) { wp_die(esc_html__("A user with this email is already registered! Please log in or use a different one!", "wpdiscuz")); } } });
Subscribe
Notify of
guest

1 Comment
newest
oldest most voted

Alex
Alex (@guest_211032)
December 23, 2015 13:31

I did this bonus and it was a lot more work than it was worth. Had to do it in branch and received 2 $100 certificates that I had to go into the branch to redeem once I met the requirements. Also the process of redeeming took a long time as the bank representative had to fill out forms for a 1099.