Skip to content

Posts: Add disabled argument to wp_dropdown_categories() and wp_dropdown_pages()#12145

Draft
SainathPoojary wants to merge 1 commit into
WordPress:trunkfrom
SainathPoojary:fix/20810
Draft

Posts: Add disabled argument to wp_dropdown_categories() and wp_dropdown_pages()#12145
SainathPoojary wants to merge 1 commit into
WordPress:trunkfrom
SainathPoojary:fix/20810

Conversation

@SainathPoojary

Copy link
Copy Markdown

This PR adds a disabled boolean argument to both wp_dropdown_categories() and wp_dropdown_pages(). When set to true, the generated <select> dropdowns are rendered with the HTML5 disabled attribute (<select disabled>).

Screenshot 2026-06-10 at 8 39 14 PM

Trac ticket: #20810

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant