Adding All New Users to Main Site
-
Starting a new topic as requested…
It is my understanding that all new registered users under WP 3.1 MS are automatically assigned Subscriber status to blog ID 1, but this clearly does not seem to be the case (at least for us at tripawds.com) as they are not being listed under Site Admin as a user of the main site. The exception, however, is that new users who also create a blog/site are being assigned subscriber status to blog id 1. Those who create no site, are not.
Now, we have been using the following in mu-plugins to automatically assign all new users main blog Subscriber status:
function ds_new_user_meta($blog_id, $user_id) { add_user_to_blog('1', $user_id, 'subscriber' ); } add_action( 'wpmu_new_blog', 'ds_new_user_meta', 10, 2 );
It’s been working like a charm, until our 3.1 upgrade. Since then, only users who create a site are being added to the main site.
So… My questions include:
- Should all new users (with or without a bblog) appear as subscribers under the primary site admin / users?
- Could this “new-user” plugin be keeping WP from doing its job?
- Any suggested tweaks for getting this plugin working again under WP 3.1?
Many thanks to all for any input.
I did look into macbis’ Multisite User Management plugi, however, it appears to assign users to all sites, and we only want to add new users to site id 1. FYI: They need to be registered members of site id 1 where our SimplePress forums reside.
- The topic ‘Adding All New Users to Main Site’ is closed to new replies.