WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Ruby Sinreich
    Member
    Posted 9 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 9 years ago #

    This thread gives an example:

    http://wordpress.org/support/topic.php?id=28270

  3. Ruby Sinreich
    Member
    Posted 9 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

Tags

No tags yet.