Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#19511 closed enhancement (invalid)

Adding an "hide_empty" parameter on wp_nav_menu() function

Reported by: prionkor Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:


There should be a hide empty parameter on wp_nav_menu() function argument as there is no point to echo a empty menu item.

  1. The node with submenu should be skipped.
  2. May be false by default.
  3. There will be a check box on side of the menu (check attached image)


  1. 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)

comment:1 @prionkor3 years ago

  • Resolution set to invalid
  • Status changed from new to closed

The checkbox will apply on taxonomy.

comment:2 @helenyhou3 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.