Home › Forums › BulletProof Security Pro › Weird menu order BPS/BPS Pro with WPVivid Backup
- This topic has 3 replies, 2 voices, and was last updated 2 weeks, 2 days ago by
Calvin Jones.
-
AuthorPosts
-
Calvin Jones
ParticipantI’ve noticed a weird menu order glitch that occurs on most (but not all) sites where I have BPS/BPS Pro installed alongside WP Vivid Backup (Free and Pro versions).
When both plugins are active, the WP Vivid menu item inserts itself between the BPS Pro and BPS Pro Logs/Info menu entries on the main admin menu. This isn’t a big issue — both plugins appear to work fine, but it is a bit odd having BPS options split like that by another plugin.
Not sure if this is a BPS issue, or a WP Vivid issue — so raising it in both places to see what’s going on / if there’s a quick fix.
AITpro Admin
KeymasterThe issue is that the BPS and BPS Pro plugins are not using the optional $position parameter in the add_menu_page() function, which I should probably add at some point. WPvivid is using the optional $position parameter in the add_menu_page() function and they are using 100 for the $position parameter value, which would normally put the WPvivid menu directly below the “Settings” menu separator, which has a position value of 99. Decimal values are allowed for the $position parameter. So the simple solution would be to change the $position parameter value from 100 to 99.1 in the WPvivid code below. I assume a lot of plugins do not use the optional $position parameter. So changing the $position parameter value from 100 to 99.1 by the WPvivid folks in their plugin, would prevent menu order conflicts with other plugins. You can send a link to this forum topic to the WPvivid folks.
File: wpvivid-backuprestore/admin/class-wpvivid-admin.php
Code Line: 338-361if(is_multisite() && !$is_active_pro) { $menu['page_title']= 'WPvivid Backup'; $menu['menu_title']= 'WPvivid Backup'; $menu['capability']='administrator'; $menu['menu_slug']= $this->plugin_name; $menu['function']=array($this, 'display_plugin_setup_page_mu'); $menu['icon_url']='dashicons-cloud'; $menu['position']=99.1; $menu = apply_filters('wpvivid_get_main_admin_menus', $menu); add_menu_page( $menu['page_title'],$menu['menu_title'], $menu['capability'], $menu['menu_slug'], $menu['function'], $menu['icon_url'], $menu['position']); } else { $menu['page_title']= 'WPvivid Backup'; $menu['menu_title']= 'WPvivid Backup'; $menu['capability']='administrator'; $menu['menu_slug']= $this->plugin_name; $menu['function']=array($this, 'display_plugin_setup_page'); $menu['icon_url']='dashicons-cloud'; $menu['position']=99.1; $menu = apply_filters('wpvivid_get_main_admin_menus', $menu); add_menu_page( $menu['page_title'],$menu['menu_title'], $menu['capability'], $menu['menu_slug'], $menu['function'], $menu['icon_url'], $menu['position']); $this->submenus = apply_filters('wpvivid_get_admin_menus', $this->submenus);AITpro Admin
KeymasterI did Live testing with the BPS, BPS Pro and WPvivid Backup plugins and this solution works fine.
Calvin Jones
ParticipantThanks a million for the response — I’ll get back to the folks at WP Vivid Backup and point them to this.
-
AuthorPosts
- You must be logged in to reply to this topic.



