Skip Navigation

[Resolved] Set Expired date for User role

This thread is resolved. Here is a description of the problem and solution.

Problem:
Set expiry date for user roles.

Solution:
Actually the idea is to control user roles with subscriptions (paid). It's true that there's no way in Toolset Forms for setting an expiry date for a user role, but you can either use a 3rd party plugin (i.e. WC Subscriptions or etc) or can use custom code as prescribed on this thread https://toolset.com/forums/topic/cancel-subscription-dont-change-user-role/.

Relevant Documentation:
https://toolset.com/course/wordpress-membership-sites/

This support ticket is created 2 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 -
- - - - - - -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 4 replies, has 2 voices.

Last updated by wilfredC 2 years, 6 months ago.

Assisted by: Waqas.

Author
Posts
#2436353

How can I set up a custom user role with an expiration date after the user is assigned?
For example, the site has a custom role called "Premium Member" customers need to purchase and checkout to upgrade to that role. After one year, if they don't continue to pay for the membership, their role will change from Premium Member to Customer.

#2436573

Waqas
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting the support.

May I ask you to look into this guide https://toolset.com/course/wordpress-membership-sites/ ? And see if this helps answering your query.

Please let me know or I'll try my best to further assist you on the matter.

Have a nice weekend!

#2436669

Seem like there is no guide on how to set an expired date for the user role from the link you have given.

#2437999

Waqas
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for looking into the guides.

Actually the idea is to control user roles with subscriptions (paid). It's true that there's no way in Toolset Forms for setting an expiry date for a user role, but you can either use a 3rd party plugin (i.e. WC Subscriptions or etc) or can use custom code as prescribed on this thread https://toolset.com/forums/topic/cancel-subscription-dont-change-user-role/.

Unfortunately, we do not offer custom code on this forum. You'll need to look for a 3rd party solution, develop it for yourself or hire a Toolset Contractor (https://toolset.com/contractors/) to the job for you.

Regards.

#2438023

Thank for the help, I will look into 3rd party solution.