Codex tools: Log in
Generates a list of editable user roles as options for a select box.
<?php wp_dropdown_roles( $selected ); ?>
This function does not return a value. Its output is echo'd directly.
If you would like to set a default role for the dropdown, provide the slug for the desired role as a parameter. The following example creates a dropdown of user roles with the "Editor" role as the default, selected value:
<select> <?php wp_dropdown_roles( 'editor' ); ?> </select>
wp_dropdown_roles() is located in