• Hello

    Is it possible to automatically add a new user to all blogs on network. A plugin or code hack is fine, I just need to find a way..

    Edit: I know they have pseudo subscriber access but this doesn’t seem to allow them to view private pages even when ‘subscriber’ has that capability assigned.. So i guess they need to be assigned to the blog in question..

    Cheers
    Alan

Viewing 2 replies - 16 through 17 (of 17 total)
  • agreda

    (@agreda)

    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.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    agreda – Can you make a NEW topic for this?

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘Automatically add a new user to all blogs on network’ is closed to new replies.