[wp-trac] [WordPress Trac] #41193: Cannot remove sub-menu item in WP admin which links to admin.php

WordPress Trac noreply at wordpress.org
Wed Jun 28 11:24:19 UTC 2017


#41193: Cannot remove sub-menu item in WP admin which links to admin.php
------------------------------+-----------------------------
 Reporter:  subrataemfluence  |      Owner:
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  General           |    Version:  4.7.5
 Severity:  normal            |   Keywords:
  Focuses:  administration    |
------------------------------+-----------------------------
 I am trying to remove the following sub-menu page
 http://vagrant.local/wp/wp-admin/admin.php?page=home_settings_page with
 the following but it never disappears

 `remove_submenu_page( 'admin.php', 'home_settings_page' )`

 But `remove_submenu_page( 'options_general.php', 'here_is_the_option' )
 works.`

 Codex page I am referring to is:
 https://codex.wordpress.org/Function_Reference/remove_submenu_page

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41193>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list