WordPress.org

Support

Support » Plugins and Hacks » User Roles and Password Expiration

User Roles and Password Expiration

  • 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?

  • The topic ‘User Roles and Password Expiration’ is closed to new replies.