mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-03 20:24:26 +00:00
ae6575685c43b9bede9fa8a12dc310c7d102602c
wp_dropdown_categories(), allow the term field used to populate option valuesto be specified.
The new 'value_field' parameter makes it possible to set term slugs (or some other term property) as the 'value' attribute of the option elements generated by `wp_dropdown_categories()`. This additional flexibility reduces the effort required to translate term_id to other term fields when processing form submissions that include values from taxonomy dropdowns. See #30865 for a use case. Props collinsinternet. Fixes #30306. git-svn-id: https://develop.svn.wordpress.org/trunk@31006 602fd350-edb4-49c9-b593-d223f7449a82
Description
No description provided
Languages
PHP
80.5%
CSS
9.4%
JavaScript
8.5%
SCSS
0.9%
HTML
0.7%