Alphabetic ordering of Roles by Name
-
Hi,
The issue we are having at the moment is the ordering of Roles.
We have set up around 30 custom roles, the names of which have been prefixed with an A., B., etc to denote priority, the slugs have not.
When viewing the Roles section in WP Admin, or the Meta Boxes on user profiles, the Roles are sorted by the Role ‘Slug’ used in the code, rather than the Title.
This also happens when manipulating the ‘editable_roles’ filter and the ‘members_manage_role_items’ to pass, sort and return the array of roles.
It is worth noting that the roles are properly ordered in the Meta Box for Page Permissions.
Is there any way to rectify this?
Thank you very much.
- The topic ‘Alphabetic ordering of Roles by Name’ is closed to new replies.