[wp-trac] [WordPress Trac] #30306: wp_dropdown_categories values as slug

WordPress Trac noreply at wordpress.org
Tue Nov 11 21:52:50 UTC 2014


#30306: wp_dropdown_categories values as slug
-------------------------+------------------------------
 Reporter:  gputignano   |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Customize    |     Version:  4.0
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by collinsinternet):

 This isn't a bad idea.  You could add an argument to the
 wp_dropdown_categories() called 'value_field' and set the value as 'slug'
 or any other part of the $category object (e.g. 'name').

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30306#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list