• Resolved altmejd

    (@altmejd)


    I’m creating a blog/forum (using bbpress), and now i want a special css-class not to be displayd to those users who register in the forums (get subscriber status in wp i think).

    I tried to find the way to extract the user level, but i must be doing something wrong because i didnt get any results.


    $user_data = get_currentuserinfo();
    echo('User level: ' . $user_data->user_role '');

    This echoes “User level: “, nothing more.

Viewing 1 replies (of 1 total)
  • Something like this:

    if ( current_user_can('level_0') );

    Also doing a WinGrep on the WordPress files shows some interesting used of current_user_can.

    Additional resource:
    Roles_and_Capabilities

Viewing 1 replies (of 1 total)
  • The topic ‘user level administration’ is closed to new replies.