Like the other two support tickets here and here, the way add_menu_page()
is being used in Delete Comments By Status is causing other admin menu items to disappear in the WordPress dashboard.
Fixing this is very simple. In add_menu_page()
, you’re using 26.91
as the menu position. A float is not allowed there. But it will work as a string. So wrap the float in single quotes. Change 26.91
to '26.91'
and you will have achieved what you were attempting to do by using such a random number.
This is a known practice: https://core.trac.www.ads-software.com/ticket/23316
That will fix the conflict with other plugins as long as they don’t have the same value.
Thanks!
]]>I have had the Events Manager (https://www.ads-software.com/plugins/events-manager/) plugin installed on a website for at least a year now. After installing the Delete Comments By Status plugin, all the Events Manager side admin menus disappear. After deactivating the Delete Comments By Status plugin, all the Events Manager side admin menus appear and are accessible again.
It looks like there is a conflict with the assignment of the admin side menu for the Delete Comments plugin. The plugin is replacing the Events Manager side admin menu with the Delete Comments side admin menu when it is activated.
]]>Using WC 3.0.4 with TwentySeventeen theme and only WooCommerce active – the Products admin menu item does not appear when Delete Comments By Status is active.
]]>