-
Home
-
SecuPress Free with Simple SSL – Simple and Performant Security
- Tips
How to Hide SecuPress Free with Simple SSL – Simple and Performant Security Admin Menus
function plt_hide_secupress_menus() {
//Hide "SecuPress".
remove_menu_page('secupress_scanners');
//Hide "SecuPress → Scanners".
remove_submenu_page('secupress_scanners', 'secupress_scanners');
//Hide "SecuPress → Modules".
remove_submenu_page('secupress_scanners', 'secupress_modules');
//Hide "SecuPress → More Security".
remove_submenu_page('secupress_scanners', 'https://secupress.me/pricing');
}
add_action('admin_menu', 'plt_hide_secupress_menus', 11);
Where do I put this code?
How to Hide the "SecuPress Blocked Attacks (0)" Dashboard Widget
function plt_hide_secupress_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "SecuPress Blocked Attacks (0)" widget.
remove_meta_box('secupress-attacks-widget', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_secupress_dashboard_widgets', 20);