Skip Navigation

[Resolved] Uncheck “everyone can register”

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.

This thread is resolved. Here is a description of the problem and solution.

Problem: I have been receiving registration spam from wp-login.php?action=register, so I would like to disable "anyone can register" in my WordPress settings. If I do this, will I still be able to utilize the wp_insert_user action hook?

Solution: Yes, you will be able to use the wp_insert_user action hook if you uncheck "Anyone can register" in your WordPress settings.

Relevant Documentation: https://codex.wordpress.org/Function_Reference/wp_insert_user

This support ticket is created 7 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by jeromeL 7 years, 7 months ago.

Assisted by: Christian Cox.

Author
Posts
#513121

Hi,

I use CRED form to submit datas in CPTs and on form submit, an "add_action('cred_save_data')" create a user (wp_insert_user). All works fine !

For two days I get a lot of spam user registration using wp-login.php?action=register and I'd like to disable "anyone can register" in wordpress settings.

If i do that, will it block wp_insert_user action in functions.php ?

Thanks for your answer.

Regards,
Jérôme

#513154

Hi, unchecking this box won't block the wp_insert_user method. You can uncheck the box and continue inserting users as usual.

#513161

Many thanks Christian !
best regards.

The forum ‘Types Community Support’ is closed to new topics and replies.