Opened 11 years ago
Closed 11 years ago
#32731 closed enhancement (duplicate)
add_menu_page function param: position should be refactored.
| Reported by: | basdog22 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Plugins | Version: | 4.2.2 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: | ui, administration |
Description
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);
Change History (1)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hi @basdog22, welcome to Trac!
Sorry it took so long for somebody to get back to you. I'm going to close this as a duplicate of #15595. Thanks for the report!