new-user-approve
new-user-approve copied to clipboard
On WP Multisite users get an activation mail before they get approved by an admin.
Hi there,
I really love the idea of this plugin and wanted to use it on a WP multisite setup combined with Buddypress 2.0.1. Tried it out but multisite seems to trick out your plugin. I mean the user gets his/her usual activation plugin before an admin could approve him/her. So this way the whole logic of the plugin is just broken.
On a WP multisite installation there is another WP core function called "wpmu_signup_blog_notification". It is located in wp-includes/ms-functions.php line 805. Most probably you simply do not manage this special notification of a MU setup in your plugin.
Furthermore BuddyPress has a function called "bp_core_activation_signup_blog_notification" (bp-core-filters.php line 313). So if you have BP installed as well then it sends another email to the new user before you have the chance to approve him.
Can you please manage these 2 functions in your plugin so that in the end MU and BP do not break the logic of the plugin?
Made some more detailed investigation. I was not accurate before: wpmu_signup_blog_notification is run when the user registered a new blog as well.
If the new user just registers as a user then wpmu_signup_user function is run that inserts the user's data into wp_signup table and right after that calls another function named wpmu_signup_user_notification to send the activation mail to the user. So i think these functions should be filtered in a multisite setup.
Yes. I have started to look into this. I am hoping it will be apart of the next feature release.
I'd like to see this addressed as well. Thank you.