Skip Navigation

[Resolved] How to update user role in bulk

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


Change the user role from Editor to Subscriber using Toolset form for editing users.


It needs custom codes, for example:

Relevant Documentation:

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.

This topic contains 2 replies, has 2 voices.

Last updated by Pat 1 year, 7 months ago.

Assigned support staff: Luo Yang.




I'm using Toolset access and have created specific roles.
Now, I would like to restore all non administrator and editor users to subscriber. Is it pssible to do this from the front end thanks to a hook for example?


Luo Yang

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

Dear Pat,

I assume you are going to change the user role from Editor to Subscriber using Toolset form for editing users.

If it is, it needs custom codes, for example, after user submit the edit user form, you can use action hook cred_save_data to trigger a PHP function, in this PHP function change the user's role to Subscriber .

More help:

See the example codes here:



Hi Luo,

I agree with you and I was just trying to see if you could have a better idea in the meantime.
I have several sites where I need to make this kind of "re-initialisation" and that have been good to have a robust front end solution for that.