[wp-trac] [WordPress Trac] #41343: Multisite issue: Applying remove_submenu_pages($parent_slug, $menu_slug) to a page like admin.php?page=qs takes out all sub menus under that parent
WordPress Trac
noreply at wordpress.org
Mon Jul 17 13:28:41 UTC 2017
#41343: Multisite issue: Applying remove_submenu_pages($parent_slug, $menu_slug) to
a page like admin.php?page=qs takes out all sub menus under that parent
------------------------------+--------------------------------------------
Reporter: subrataemfluence | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 4.8
Severity: normal | Resolution: invalid
Keywords: close | Focuses: ui, administration, multisite
------------------------------+--------------------------------------------
Changes (by subrataemfluence):
* keywords: => close
* status: new => closed
* resolution: => invalid
Comment:
Ah! Got this to work :) The hook I should be using is `admin_init` not
`admin_menu`. Now everything is fine! Closing as invalid.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41343#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list