WordPress.org

Support

Support » How-To and Troubleshooting » How to make it so user level 9 can’t change or delte categories

How to make it so user level 9 can’t change or delte categories

  • Is there a way user level 9 can do everything besides make, edit, and delete categories?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Someone help me please?

    Open wp-admin/categories.php. Look for several:

    if ($user_level < 3)

    and change them all to:

    if ($user_level < 10)

    Towards the end look for a couple of these:

    <?php if ( $user_level > 3 ) : ?>

    and change to:

    <?php if ( $user_level > 9 ) : ?>

    Finally, if you want to take Categories off the Manage submenu (to remove the temptation), go into wp-admin/menu.php and alter this:

    $submenu['edit.php'][15] = array(__('Categories'), 1, 'categories.php');

    to:

    $submenu['edit.php'][15] = array(__('Categories'), 10, 'categories.php');

    Remember: Back up files you are planning to change, and comment your changes.

    lol, just figured it out myself right before I checked my reply 🙂

    Thank you anyway! :p

    Oh, I didn’t know about taking it off the menu! Thanks that’s even better! 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to make it so user level 9 can’t change or delte categories’ is closed to new replies.