yasvintus
Forum Replies Created
-
Strangerstudios,
Unfortunately my experiment failed. I just got an email at my test user address saying “Your membership at <site> has ended”. I also checked the settings of the user, and his membership level has been correctly flipped to “None”. However, I am still able to log in as the expired user and the site is still up. So there definitely seems to be something up with the plugin managing expirations of pre-existing users (those that were registered outside of pmpro) and deactivation of their site.
If you have any idea on how it can all be hooked up, I would really appreciate any advice.
Thank you!
Thanks for your reply, strangerstudios. I re-tested site deactivation by setting the user’s membership to None, but still can’t get it to work — the user loses his/her ability to log in, but the site is still up. However, I am starting to think that maybe the code you referenced only runs when user expiration is handled by a cron job, so today I’ll try the following:
Create a new user outside of pmpro (which is the use case for which that I started this thread), assign him a site, then add the user into pmpro as described here, then set the expiration date to today. Hopefully, by tomorrow the both the user and the site will be deactivated.
If you could keep this thread open for a few more days I’ll report back to let you know the results.
Thanks for your help and for the great plugin!
Upon further testing, I am finding that for a site created by the user that was manually added to the list of pmpro members by assigning them a membership via the WordPress native Users control panel, the automatic deactivation of the site is not working. I tried manually ending the membership by setting the membership level to “None” and also by logging in as the user and cancelling the account – in both cases the site the user created remained active. Can you please confirm that this is expected and the automatic deactivation only works for sites created through the pmpro signup process? Can anything be done to enable the deactivation to happen for users added to pmpro from the list of existing WP users?
Thanks again!