I need to get the array of all the roles. I was using $wp_roles which doesn’t work when you are logged out.
Let be clear I am not looking for a user’s role, I am looking for what roles exist in the system.
I figure I can do a query just not sure where this is being store. Options table most likely.
- The topic ‘Get all roles when you aren’t logged into the system’ is closed to new replies.