WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#25591 closed enhancement (duplicate)

hide_submenu_page

Reported by: j.conti Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Administration Keywords:
Focuses: Cc:

Description

Hi,

You can hide a submenu in 3 ways.

remove_submenu_page -> page inaccessible.

unset($submenu... -> same way

add_submenu_page with parent = null. The submenu is not showed, but the parent menu don't expand.

I think can be great a function that hide a submenu link, but expand the plugin/theme parent menu.

For example hide_submenu_page

With that function, a developer could hide the submenu, but the parent menu would be expanded.

Change History (3)

#1 @jartes
7 years ago

  • Cc joan@… added

#2 @bi0xid
7 years ago

  • Cc raven@… added

#3 @SergeyBiryukov
7 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.