• Hello

    I am adding a line to the sidebar and need help with the code. I need to do something like this.

    If userlevel >=1 then display this line

    Can you help me find out how to get the user level and code this line?

    I dont want any plugins, just 1 or 2 lines of code should be able to do this.

    Thanks in advance.

Viewing 1 replies (of 1 total)
  • <?
    get_currentuserinfo() ;
    global $user_level;
    if ($user_level >= 1) {
         echo 'hello world';
    }
    ?>
Viewing 1 replies (of 1 total)
  • The topic ‘How can I do this? If userlevel >=1 then display this line’ is closed to new replies.