WordPress provides a great function which allows you to generate options for a select box out of all available, editable user roles for your site – wp_dropdown_roles. However, many times it is necessary to have the available roles generated as checkboxes so we can select multiple roles rather than just a single role.
Here is how it’s done:
Leave a Reply