I’m doing a opensource plugin for Public Management Livestreams compatible with own3d.tv, justin.tv, twitch.tv, livestream.com
I have some problem with my code with a request to delete one new special role.
I’m blocked with get_users and make a filter on get_users, with something like this
the role is deleted from administration correctly (in the default list wordpress. Users switch to the role “subscriber” but, when i go to the default wordpress profil field, i have a new part named “additional capacity” (or something like that in french) with the key of the latest role that I just erase (and this value made a bug).
Have you an idea to delete completly the role_to_delete for each user ? Any idea for only those users of this latest role return correctly in “members” ? (without losing their greater role on the current_site)
The objective is each user don’t lose its greater role and return in this greater role.
Actually, also the admin goes to members without //filter current admin
- The topic ‘get_users, filter, switch users from the current role to delete – to another one’ is closed to new replies.