WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Make new user have Editor role. (3 posts)

  1. w1nk5
    Member
    Posted 3 years ago #

    By default when a new blog is created the associated user is given the role of administrator.

    Is there a way to change this so the new user is given a role of Editor?

    Thanks

  2. David Sader
    Member
    Posted 3 years ago #

    Stick the following snippet into a php file in your mu-plugins dir:

    <?php
    function ds_new_user_meta($blog_id, $user_id) {
     add_user_to_blog($blog_id, $user_id, 'editor' );
    }
    add_action( 'wpmu_new_blog', 'ds_new_user_meta', 10, 2 );
    ?>

    http://wordpress.org/support/topic/how-do-i-change-the-default-administrator-role-to-author-for-new-users

  3. w1nk5
    Member
    Posted 3 years ago #

    Thanks man. Works perfect.

    Cheers

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.