Passer la navigation

[Résolu] Set Expired date for User role

Ce fil est résolu. Voici une description du problème et la solution proposée.

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 Il y a 3 years, 9 months. 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 -
- - - - - - -

Fuseau horaire du supporter : Asia/Karachi (GMT+05:00)

Ce sujet contient 4 réponses, a 2 voix.

Dernière mise à jour par wilfredC Il y a 3 years, 9 months.

Assisté par: Waqas.

Auteur
Publications
#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

Les langues: Anglais (English )

Fuseau horaire: 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

Les langues: Anglais (English )

Fuseau horaire: 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.