WordPress.org

Forums

[resolved] determin user role (3 posts)

  1. genim
    Member
    Posted 4 years ago #

    I want to know how to achieve this

    if (the user is a contributor) {
    set of statements;
    }
    else if (the user is a subscriber) {
    set of statements;
    }
    else if (the user is a author) {
    set of statements;
    }

    is there any wordpress codec? or any other way?

  2. esmi
    Forum Moderator
    Posted 4 years ago #

  3. genim
    Member
    Posted 4 years ago #

    i saw that before...

    i ended up using current_user_can

Topic Closed

This topic has been closed to new replies.

About this Topic