#19511 closed enhancement (invalid)
Adding an "hide_empty" parameter on wp_nav_menu() function
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
There should be a hide empty parameter on wp_nav_menu() function argument as there is no point to echo a empty menu item.
- The node with submenu should be skipped.
- May be false by default.
- There will be a check box on side of the menu (check attached image)
- The "hide_empty" parameter will be overwrite by that checkbox. That means the user choice will have more priority then theme developers choice.
Change History (2)
Note: See
TracTickets for help on using
tickets.
The checkbox will apply on taxonomy.