WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] All New Users Given Editor or Author Role Instead of Admin (7 posts)

  1. myladeybugg
    Member
    Posted 1 year ago #

    At the moment all new users are admins of their site but I would like to make them all editors or authors of their sites. I am currently using the adminimize plugin to restrict their admin abilities, but is their a way to make all new users an editor or author by default? Possibly something in the code?

    I would like to stay away from plugins if possible.

    Thanks.

  2. I would like to stay away from plugins if possible.

    Then you're out of luck.

    The correct way to do this is via plugins and in theory you can do this by filtering the roles on creation.

    You'd want to filter add_user_to_blog, based on who created the blog.

  3. myladeybugg
    Member
    Posted 1 year ago #

    What plug ins would you suggest to get this done?

  4. myladeybugg
    Member
    Posted 1 year ago #

    I found this thread, added the code to my mu-plugins folder in a file called user-default-roles.php, and it seems to do the trick.

    Is there any reason why doing it this way would not be ideal?

  5. myladeybugg
    Member
    Posted 1 year ago #

    The one thing I find with using this is the user cannot upload a header image. The option is not available under profile.

  6. The one thing I find with using this is the user cannot upload a header image.

    Yeah, they won't be able to unless they can edit theme settings. Which IIRC is admin only.

  7. myladeybugg
    Member
    Posted 1 year ago #

    Yeah, they won't be able to unless they can edit theme settings. Which IIRC is admin only.

    Ya, maybe I'll just stick with using adminimize for now.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.