Opened 13 months ago
Last modified 10 months ago
#20810 new enhancement
Add disable arg or attributes arg to wp_dropdown_categories() & wp_dropdown_pages()
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Template | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | sisir@… |
Attachments (4)
Change History (6)
comment:1
prionkor
— 10 months ago
+1 we need it on all dropdown functions.
An array of attribute could be passed. Like:
$args = array(
'attrs' = array(
'multiple' => 'multiple',
'disable' => 'disabled'
)
)
It will allow users to add extra attribute like classes or any other html 5 attributes on the dropdown.
Note: See
TracTickets for help on using
tickets.
Disabled arg for wp_dropdown_categories()