How to determine current user level (1.5) (3 posts)

  1. Ruby Sinreich
    Posted 11 years ago #

    In WP 1.2 I was able to do <?php get_currentuserinfo();
    if ($user_level) ...
    etc. to determine if the user was logged in and of a certain level. Then I display some administrative links for authors onll.

    It doesn't seems to work in WP 1.5. Is there a new way to do this?

  2. Kafkaesqui

    Posted 11 years ago #

    This thread gives an example:


  3. Ruby Sinreich
    Posted 11 years ago #

    Thank you! Apparently, I just needed to add global $user_level;

    I swear I searched before posting, I don't know why I didn't find that.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.