-
Home
-
Freesoul Deactivate Plugins – Disable plugins on individual WordPress pages
- Tips
function plt_hide_freesoul_deactivate_plugins_menus() {
//Hide "Plugins → Create new".
remove_submenu_page('plugins.php', 'eos_dp_create_plugin');
//Hide "Plugins → Plugins Manager".
remove_submenu_page('plugins.php', 'eos_dp_menu');
//Hide "Freesoul Deactivate Plugins".
remove_menu_page('eos_dp_menu');
//Hide "Freesoul Deactivate Plugins → Plugins Manager".
remove_submenu_page('eos_dp_menu', 'eos_dp_menu');
//Hide "Freesoul Deactivate Plugins → Tools".
remove_submenu_page('eos_dp_menu', 'eos_dp_create_plugin');
//Hide "Freesoul Deactivate Plugins → Testing".
remove_submenu_page('eos_dp_menu', 'eos_dp_smoke_tests');
//Hide "Freesoul Deactivate Plugins → Experiments".
remove_submenu_page('eos_dp_menu', 'eos_dp_experiments');
//Hide "Freesoul Deactivate Plugins → Help".
remove_submenu_page('eos_dp_menu', 'eos_dp_help');
//Hide "Freesoul Deactivate Plugins → Add-ons".
remove_submenu_page('eos_dp_menu', 'eos_dp_addons');
//Hide "Freesoul Deactivate Plugins → Upgrade".
remove_submenu_page('eos_dp_menu', 'https://shop.freesoul-deactivate-plugins.com/');
}
add_action('admin_menu', 'plt_hide_freesoul_deactivate_plugins_menus', 10000);
Where do I put this code?