Translating a custom user role name in WordPress
I created a custom user role in WordPress: add_role('warehouse', 'Warehouse', get_role('administrator')->capabilities); How to add translations for the role name so that it shows up in admin dashboard in the correct language based on the preferences of the currently logged in…