Skip Navigation

[Resolved] update user role using a form

This support ticket is created 4 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.
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: Africa/Casablanca (GMT+01:00)

This topic contains 0 replies, has 1 voice.

Last updated by Puntorosso 4 years, 3 months ago.

Assisted by: Jamal.

Author
Posts
#1907535

ee use the same Form to add new WP users with the roles "buyer" and "seller".
We added a generic selector with the 2 options and a PHP function to change after cred_save_data the user role.

When using the [toolset-edit-user-link] shortcode, is it possible to add an url parameter with the user role so that can be also updated in the user edit form?