The examples in those threads may need some tweaks, but most likely will work straight away.
Hi Andrea. You’ve mentioned before that all new registered users under WP 3.1 are automatically assigned Subscriber status to blog ID 1, but this clearly does not seem to be the case (at least at tripawds.com) as they are not 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 “straight away” under WP 3.1?
Many thanks to all for any input.
PS: Thanks for the multisite user management plugin lead, however, it appears to assign users to all sites, and we only want to add new users to site id 1.
EDIT: I just now noticed how old this topic is. :-/ But it seemed the most relevant after searching these forums.