[wp-trac] [WordPress Trac] #13269: Ability to list by user role in wp_dropdown_users

WordPress Trac wp-trac at lists.automattic.com
Wed May 5 22:05:20 UTC 2010


#13269: Ability to list by user role in wp_dropdown_users
-----------------------------+----------------------------------------------
 Reporter:  danielpataki     |       Owner:            
     Type:  feature request  |      Status:  new       
 Priority:  normal           |   Milestone:  Unassigned
Component:  General          |     Version:            
 Severity:  normal           |    Keywords:            
-----------------------------+----------------------------------------------
 Hi Everyone!

 I am using custom post types and during my experimentation I found it the
 best to create a new role as well. In short, a website will be hosting
 seminars, and we have seminars as a custom post type, and seminar speakers
 as a role (we want to be able to manage them as users, but restrict blog
 access).

 Since they are not authors, they will not show up in the author box on the
 new post page, so I added a new meta box, which contains a select box to
 select the speakers we need.

 For this I need to create a custom query, but it would be great if a
 simple attribute were added to the function wp_dropdown_users(). The
 argument could be "role" and you would need to add the name of the role,
 like "speaker".

 I hope this is something  useful to others too! While I have a pretty good
 understanding of the WP core now, I am not really comfortable checking out
 files yet, so sorry for not actually writing the code.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13269>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list