• Skip to primary navigation
  • Skip to main content

Josh Mallard

Who Summoned the Bearded Ginger?

  • Music
  • Food
  • Thoughts
  • Stay in touch

Get Available WordPress User Roles as Checkboxes

March 25, 2013 by Josh Leave a Comment

ShareTweet
 
VIEWS

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:

Filed Under: Code, Thinking WordPress

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Copyright © 2023 · Josh Mallard · Sitemap

Website Development by LimeCuda

0 shares