Title: reorder plugin menu position
Last modified: August 30, 2016

---

# reorder plugin menu position

 *  [stilfx](https://wordpress.org/support/users/stilfx/)
 * (@stilfx)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/reorder-plugin-menu-position/)
 * Looking for a function that I can use to reorder the admin position of a 3rd 
   party plugin, and that will still work once said plugin gets updated.
 * – Backstory
    AIO webmaster and All In One Events plugins are both forcing a menu
   position of 6. So if you load both plugins, the Events plugin “loses” and disappears.
 * I’d like a function to simply move AIO webmaster from say position 6 to somewhere
   else — best would be to remove the position all together, and have it fall into
   default menu order!
 * In the meantime, I’m hacking the AIO webmaster code from:
 *     ```
       public function aiow_premium_menupage() {
       		add_menu_page ( 'All in One Webmaster', 'AIO Webmaster', 'manage_options', 'aiow-premium', 'all_in_one_premium_webmaster_webmaster_page', plugins_url ( 'all-in-one-webmaster/images/favicon.ico' ), 6);
       ```
   
 * and removing the 6 position
 *     ```
       public function aiow_premium_menupage() {
       		add_menu_page ( 'All in One Webmaster', 'AIO Webmaster', 'manage_options', 'aiow-premium', 'all_in_one_premium_webmaster_webmaster_page', plugins_url ( 'all-in-one-webmaster/images/favicon.ico' ) );
       ```
   
 * ..obviously, this only lasts until the plugin gets updated.
 * Any overriding function ideas to make that change stick?

Viewing 1 replies (of 1 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/reorder-plugin-menu-position/#post-6674142)
 * The only way I see is to reassign the global `$menu[6]` to `$menu[]` after the
   first plugin’s code executes but before the second’s. As they probably both hook‘
   admin_menu’ with the default priority of 10, this proves to be difficult to get
   between.
 * Apparently the callbacks of identical priority are called alphabetically, so 
   by careful naming of your ‘admin_menu’ callback you should be able to get between
   the two to institute a fix. Good luck!

Viewing 1 replies (of 1 total)

The topic ‘reorder plugin menu position’ is closed to new replies.

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/reorder-plugin-menu-position/#post-6674142)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
