WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Problem with subscriber role (2 posts)

  1. Zoutesnor
    Member
    Posted 6 years ago #

    In my theme I run a conditional statement wich checks if a user has the "read" capability, a capability every logged-in user should have, to decide wether certain content should be displayed or not. Recently someone pointed out to me, that subscribers could not see this content anymore, while contributors could. I tested this on an older wordpress install (version 2.0.5), and it worked fine there.

    So, to summarize my question: Does anybody know why the command
    if (current_user_can(read))
    returns a false if the user has the role of subscriber?

  2. Zoutesnor
    Member
    Posted 6 years ago #

    Sorry bout this, turned out I did something wrong, it works just fine now.

Topic Closed

This topic has been closed to new replies.

About this Topic