I have a settings page that shows the users wordpress role. I am using wp_get_current_user()->roles get that list. However, that list appears in English, and often my users have their locale set to something other than English.

Is there a way to get the users role in a localized string?

1 Answer 1


You can use translate_user_role($role) function.

More details: translate_user_role()


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.