i have a feeling its because the other plugin is accepting random registrations.
What plugin are you using that’s handling the approvals? It’s possible that’s circumventing the process.
I am having the same issue using the same additional plugin as tocadisco:
I also use the new user approve plugin as well.
“New User Approve” is most likely conflicting with Ban Hammer.
link to plugin
I just tried with both installed and active and it worked fine.
Thanks for the quick reply Ipstenu!
When I use Ban Hammer plugin and block @mail.ru addresses, then attempt to register for a new account using @mail.ru I receive my custom block message and it appears to be working correctly. But then I still have that new user waiting to be approved in my “Approve new users” list.
Can you please verify that you do not have a test user pending approval?
Thanks again.
OH OH! You’re right, it didn’t show up at first (how weird….).
Huh. So it rejects but adds to approvals. Well that’s weird.
Okay, I see why. It LOOKS like it’s because we’re running a command at the same priority. I can change it by making my higher (10 is the default, 1 would be highest priority).
You can test this, changing line 107 is banhammer.php to this:
add_action('register_post', array(&$this, 'banhammer'), 1, 3);
Thanks for looking again! Ok, I’ll give that change a go later today. I appreciate your time and effort looking into this issue.
Hopefully tocadisco comes back and tries this fix as well.
hello @wpkmi @ipstenu , i had actually deactivated that plugin since it was interfering with the ban hammer plugin , but nevertheless i have activated new user approve plugin again and updated the ban hammer plugin with your fix , let me see how it works ,
checked seems to be working fine so i resolved the topic.
New version officially has this fix in, since it doesn’t break anything else.