Hi Vladimir;
Awesome plugin: I use it on almost all websites I develop to customize interfaces for clients.
Question regarding the above code snippet: I have a site where I created a good amount of custom user-roles (which we now have decided are too much and have just configured some queries to accommodate what we need). I’m having to delete these roles one-by-one and doing it via the front-end interface is time-consuming.
Would it be ok for me to use the code you supplied above and replace the default ‘roles_to_hide’ values with the user-roles I have created to delete them?
I believe I used this code before (or something similar) and was successful in ‘removing’ the default ‘subscriber’ level from a website, and it seemed to have ‘deleted’ it, but I am not sure. Would doing this actually ‘delete’ the roles I enter into the code?
I’d prefer they get deleted vs. just ‘hidden’. Hope that makes sense. I also figured I would ask you before attempting to do so and causing issues on my client site.
Thanks in advance and have a great day!
Roger