WordPress.org

Ready to get started?Download WordPress

Forums

User Roles and Password Expiration (1 post)

  1. computersimple
    Member
    Posted 2 years ago #

    I need to be able to allow certain users access to certain posts based on the amount of time they have been a registered user. For example if the user role is a subscriber they will have 90 days to access certain posts, if user role is an editor they will have 365 days to access posts. So far I have found no plugins or known hacks to do this. I was thinking of altering the Expire User Passwords plugin to accomplish this by checking the user role first, if the user is subscriber the expire time is set to 90 days, then the check would happen if it's greater than 90 the password is expired. I cannot see where to check the user role. Can this be accomplished through the $user object? if so how?

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by computersimple
  • This topic is not resolved
  • WordPress version: 3.3.2