• Hi Everybody,

    I hope somebody knows, how to setup user levels. I would like to configure at which level what exactly a user can do and a user can reach. I do not understand much about php programming, will i be able to fix these settings?

Viewing 4 replies - 1 through 4 (of 4 total)
  • http://codex.wordpress.org/User_Levels

    You can increase/decrease user levels under your “Authors/Users” option.

    Thread Starter Sasi

    (@sasi)

    Thanx, it is really helpful to know at which level what a user can do, but i would be lucky if someone might know how to change these settings. Cause maybe there would be things for level 9 i did not want him/her to do.

    The user levels are hard coded into the WP source. There may be a new hook that lets you override them but I don’t know. Hopefully someone else can answer that.

    Here’s an example of a hard coded user level. The user_level >= 1 is the hard coded level.


    function user_can_create_draft($user_id, $blog_id = 1, $category_id = 'None') {
    $author_data = get_userdata($user_id);
    return ($author_data->user_level >= 1);
    }

    If you really need to change user levels you can edit /wp-includes/functions-post.php but it will be overwritten the next time you upgrade.

    The user permissions system is due for an overhaul – just don’t know when it’s going to happen.

    Thread Starter Sasi

    (@sasi)

    Yes, maybe you’re right, i will not try to change and mess up things.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘How can i setup user levels?’ is closed to new replies.