Problem:
The question being asked in this thread is that if it is possible to change a user's role upon submission of a post creation form.
Solution:
Yes this is actually possible but you it will need to be done using a CRED hook.
What you need to do is use the hook and then within the hook you can update the user information using the function below.
https://codex.wordpress.org/Function_Reference/wp_update_user
It will take some work but it can be done.
The hook I recommend using is the one below.
https://toolset.com/documentation/user-guides/cred-api/#csd
If this proves too difficult then you are more than welcome to open a support thread.
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 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | - |
- | 13:00 – 18:00 | 13:00 – 18:00 | 13:00 – 18:00 | 14:00 – 18:00 | 13:00 – 18:00 | - |
Supporter timezone: America/Jamaica (GMT-05:00)
This topic contains 4 replies, has 2 voices.
Last updated by daveG-7 8 years, 1 month ago.
Assisted by: Shane.