[wp-trac] [WordPress Trac] #32731: add_menu_page function param: position should be refactored.

WordPress Trac noreply at wordpress.org
Sat Jun 20 12:09:31 UTC 2015


#32731: add_menu_page function param: position should be refactored.
--------------------------------+-----------------------------
 Reporter:  basdog22            |      Owner:
     Type:  enhancement         |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Plugins             |    Version:  4.2.2
 Severity:  normal              |   Keywords:
  Focuses:  ui, administration  |
--------------------------------+-----------------------------
 Hi.
 The add_menu_page func uses the position param to specify the order the
 plugin menus will have. If 2 plugins use the same position then they
 override each other.

 eg:

 add_menu_page('Plugin', 'Plugin', 'manage_options', 'Plugin-plugin-menu',
 'Plugin_plugin_options', 'dashicons-box', 101);

 and

 add_menu_page('Plugin2', 'Plugin2', 'manage_options', 'Plugin2-plugin-
 menu', 'Plugin2_plugin_options', 'dashicons-box', 101);

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


More information about the wp-trac mailing list