Moderator
James Huff
(@macmanx)
Volunteer Moderator
I don’t know of a method yet, but you can be rest assured that newly registered users won’t be able to do much. They are created with a user level of 0. As user level of 0 can login, edit their own profile, and see the Dashboard, Users/Your Profile, and the existing posts. That is all they can do.
http://codex.wordpress.org/User_Levels
I found a solution that worked for me. Instead of having the email with the username and password be sent to the registrant, I tweaked it so that it comes to me. If I want to approve the user I then just forward the email on to the user. Here is a summary of what I changed:
In wp-includes/pluggable-functions.php
I changed this function on line 427 or so from this:
wp_mail($user_email, sprintf(__(‘[%s] Your username and password’), get_settings(‘blogname’)), $message);
To this:
wp_mail(‘webmaster@mydomain’, sprintf(__(‘[%s] Your username and password’), get_settings(‘blogname’)), $message);
So the user does not get their username and password without me sending it to them. This could probably be turned into a plugin pretty easily…and would do it when I have some time.
Hi kwesitn, I have to say thankl you for this Approval system – I have looked for a plugin that did this with no luck.
Then I found this thread and VIOLA! You fixed my problem – thanks for a great solution
Kwesitn:
Thanks for your post about sending authorising email to admin for forwarding to actual registrant. I pasted your line of code, changed the receiving address and it worked beautifully.