Skip Navigation

[Resolved] Need a help for user approval feature

This support ticket is created 3 years, 3 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 3 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#1908855

Hi Team,

I have created a user registration form using CRED of Toolset. I have created a default role of "Pending" which will assign to the user after registration, but there is no option to deny user from login.
My question is that if there is any user approval feature in Toolset then we can set user approval for a specific role like "Pending", so user can only able to login after the approval.
OR
Is there any feature like if Admin change the role of any user then user will get notification with their user id and password?

#1908891

Hello,

It needs custom codes, for example, you can use WordPress built-in action hook "authenticate" to trigger a PHP function, if current user has role"pending", then logout him.

More help:
https://developer.wordpress.org/reference/hooks/authenticate/
https://developer.wordpress.org/reference/functions/wp_get_current_user
https://developer.wordpress.org/reference/functions/wp_logout/

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.