Latest version removes the PLUGINS admin menu
-
The latest version of the plugin removes the Plugins menu from the ADMIN menu controls. I can still get to the plugins by going wp-admin/plugins.php. This plugin needs to be tested before it is released.
I disable this plugin, and my Plugins menu returns. I enable this plugin, and my Plugins menu is gone again. This is not an access problem, not a priveleges problem, not a Multi-site problem. I am running this on a plain vanilla wordpress site.
Please fix this problem and issue an update.
I found the offending code:
directory: zerobounce\admin
File: class-zerobounce-email-validator-admin
Line: 175add_menu_page($this->plugin_name, 'ZeroBounce Email', 'administrator', $this->plugin_name, array($this, 'displayPluginAdminDashboard'), 'dashicons-email-alt', 26);
Please REMOVE the position “26” from the add_menu_page. Unfortunately this is conflicting with the plugins.php menu entry on my site. WordPress recommended best practice is: use a number higher than 66 or apply no position at all. As soon as I changed this code line, everything came back to normal, and my plugins menu returned. NEW CODE Below:
add_menu_page($this->plugin_name, 'ZeroBounce Email', 'administrator', $this->plugin_name, array($this, 'displayPluginAdminDashboard'), 'dashicons-email-alt');
Thank you
- The topic ‘Latest version removes the PLUGINS admin menu’ is closed to new replies.