The MU forums have moved to WordPress.org

Add Editor-level user to all sites within MU install (3 posts)

  1. Anonymous
    Unregistered
    Posted 15 years ago #

    Is there a way to grant permissions (say, Editor level) to a single user to *all* the blogs in an MU install? Only way I can see is to add new users separately to each blog, very time-consuming each time we have a new person who requires permissions to edit posts or mod comments across all blogs.

  2. lunabyte
    Member
    Posted 15 years ago #

    Other than making them a site admin, no there isn't currently a way to do that.

  3. musnake
    Member
    Posted 15 years ago #

    In my notes I have this snippet I (found somewhere and) use which allows me to add the same specific users to new blogs...

    This is a core file hack...

    wp-includes/wpmu-functions.php
    Find the bottom of

    function wpmu_create_blog($domain, $path, $title, $user_id, $meta = '', $site_id = 1)

    After the line:
    add_user_to_blog($blog_id, $user_id, 'administrator');

    I added the list of users (one statement per user)

    add_user_to_blog($blog_id, 6, 'editor'); //MainBlogCommon Editor

    Of course, this will only kick in for blogs created after you changed the code :)

About this Topic

  • Started 15 years ago by kmackenzie
  • Latest reply from musnake