-
Home
-
Malware Scanner
- Tips
How to Hide miniOrange Malware Protection Admin Menus
function plt_hide_miniorange_malware_protection_menus() {
//Hide "Malware Protection".
remove_menu_page('mo_mmp_malwarescan');
//Hide "Malware Protection → Malware Protection".
remove_submenu_page('mo_mmp_malwarescan', 'mo_mmp_malwarescan');
//Hide "Malware Protection → Dashboard".
remove_submenu_page('mo_mmp_malwarescan', 'mo_mmp_dashboard');
//Hide "Malware Protection → Malware Scan".
remove_submenu_page('mo_mmp_malwarescan', 'mo_mmp_malwarescan');
//Hide "Malware Protection → WAF".
remove_submenu_page('mo_mmp_malwarescan', 'mo_mmp_waf');
}
add_action('admin_menu', 'plt_hide_miniorange_malware_protection_menus', 11);
Where do I put this code?
How to Hide the "MiniOrange Website Security" Dashboard Widget
function plt_hide_miniorange_malware_protection_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "MiniOrange Website Security" widget.
remove_meta_box('custom_help_widget', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_miniorange_malware_protection_dashboard_widgets', 20);