Stripping down admin for new MU sites (5 posts)

  1. MatthewHare
    Posted 5 years ago #

    I want to strip down the default admin for users that register using a particular site I'm building.

    Essentially, I only want the new users to have access to Editor level control of their blogs, ( No access to plugins, users, appearance etc but only posts, and our own custom types ).

    I then want to strip down the basics for posts, so that only 3 fields are shown (title, a custom field, and content).

    We're doing this because it's a simple blog site, and they don't need all the confusion.

    Any suggestions? I'm pretty new to this level of wordpress editing. I barely know the loop, but I've got 10 years dev experience, so I'm comfortable with it.. I just need direction

  2. David Sader
    Posted 5 years ago #

    Some plugins to consider:

    Toggle Admin Menus

    Toggle Edit Forms' Meta Boxes

    New Blog Defaults

    New Blog Default Role

    To get every new user to be only an editor when they create their new blog you'll need something like this in "mu-plugins" too:

    <?php function ds_new_user_meta($blog_id, $user_id) {
     add_user_to_blog($blog_id, $user_id, 'editor' ); // adds user to the blog they've just created as editor
    add_action( 'wpmu_new_blog', 'ds_new_user_meta', 10, 2 ); ?>
  3. MatthewHare
    Posted 5 years ago #

    That's extremely helpful, thank you. I'll let you know how I get on.

  4. MatthewHare
    Posted 5 years ago #

    I used your Menus and Meta boxed plugin to great effect. It worked better than a number of others I tried. ( I also like it because it's tidy and doesn't clutter the settings menu )

    New Blog defaults I had installed already, and the Default Role was perfect. Essentially, I hit most of the nails on the head first time round, so I really appreciate your help!

    One suggestion though, is your Menus and Meta boxes don't take in to account custom post types. I have a number of tumblr style of custom types, and I wish to hide the taxonomies from the user.

    On the whole though, I'm very grateful! thank you :)

  5. David Sader
    Posted 5 years ago #

    I think I've left enough comments in the plugins' code so you can get the jist of what it is doing.

    I haven't even tried to make a custom post type, let alone figure out how to dynamically hide the menu.

    Gonna need a plugin to define the post types in one place, a la Super Admin, before I get interested, though.

Topic Closed

This topic has been closed to new replies.

About this Topic