Dear Toolset team,
I'm trying to create a membership site without Woocommerce plugin. I want to use your Access plugin and restrict people's access to some special articles. My question is about the restriction. Is it possible to restrict access to those articles for a limited time? Exactly like subscription plugins, I would like to grant access for a specific user for a limited amount of time, and after the time finishes, the access rights for that specific user become lifted AUTOMATICALLY.
Thank you in advance.
Hi, I'm not aware of anything exactly like this in Toolset. Access can restrict content based on User Role, so in theory you could allow your Users to register as role A, then change them to role B after a specific amount of time. However, there is no event in User Forms that fires after a specific amount of time. You could use post expiration in a post Form to trigger an event after a specific amount of time, but not for User Forms. I think this would require custom programming. You would have to set some custom time field in the User profile, then when that time is passed check the User role and modify it if necessary.
A quick search led me to this article, which includes some helpful information about modifying user roles programmatically: https://usersinsights.com/wordpress-custom-role/
I can help you set a custom field value on the User profile upon registration with Forms if that would be helpful. Let me know if you need a code snippet to do that.