How To Expire & Redirect USER Account?
I have a group for which I’ve put together a WP site. we’re hiding / showing content using the User Access Manager plugin which is great for that purpose.
However, we also want to be able to attach two expiration dates (chapter and national) to each user account. I’ve created a new table and have linked each user to their respective expiration dates, but now need ideas/guidance for coding a plugin which will:
(a) check each login against those two dates then if either one of those dates is expired redirect to a publically accessible “how-to renew your membership” information page
(b) allow the admin to update the expiration dates for any user via the admin interface
(c) display the expiration dates (read-only) to the user via their profile
(d) have a widget which will display those expiration dates (read-only) after the user has logged in (if not expired / redirected)
I can certainly break the table back out and make the expiration date values part of use user_meta values if that makes more sense best-practices-wise than a separate table.
I do want to make this into a plugin as I don’t want to have to hack WP after each update, but while I’ve modified some “easy” plugins I’m not really sure where to start with this one. Suggestions welcome!
- The topic ‘How To Expire & Redirect USER Account?’ is closed to new replies.