Skip to content
Advertisement

Tag: user-roles

Get user role by ID WordPress

I need to somehow check someone’s role with only their id. I have found the current_user_can() check. But this only works for people that are logged in. How would I check for this if that user isn’t the current user? I am using a phone order system but that uses the admin/specific account to order for other people. Answer To

Advertisement