-
Home
-
Total Upkeep – WordPress Backup Plugin plus Restore & Migrate by BoldGrid
- Tips
How to Hide Total Upkeep Admin Menus
function plt_hide_boldgrid_backup_menus() {
//Hide "Settings → BoldGrid Connect".
remove_submenu_page('options-general.php', 'boldgrid-connect.php');
//Hide "Total Upkeep".
remove_menu_page('boldgrid-backup-dashboard');
//Hide "Total Upkeep → Dashboard".
remove_submenu_page('boldgrid-backup-dashboard', 'boldgrid-backup-dashboard');
//Hide "Total Upkeep → Backup Archives".
remove_submenu_page('boldgrid-backup-dashboard', 'boldgrid-backup');
//Hide "Total Upkeep → Transfers".
remove_submenu_page('boldgrid-backup-dashboard', 'boldgrid-backup-transfers');
//Hide "Total Upkeep → Tools".
remove_submenu_page('boldgrid-backup-dashboard', 'boldgrid-backup-tools');
//Hide "Total Upkeep → Settings".
remove_submenu_page('boldgrid-backup-dashboard', 'boldgrid-backup-settings');
//Hide "Total Upkeep → Preflight Check".
remove_submenu_page('boldgrid-backup-dashboard', 'boldgrid-backup-test');
//Hide "Total Upkeep → Support".
remove_submenu_page('boldgrid-backup-dashboard', 'boldgrid-backup-support');
//Hide "Total Upkeep → Premium Features".
remove_submenu_page('boldgrid-backup-dashboard', 'boldgrid-backup-premium-features');
//Hide "Total Upkeep → Get Premium".
remove_submenu_page('boldgrid-backup-dashboard', 'https://www.boldgrid.com/update-backup?source=bgbkup-nav');
}
add_action('admin_menu', 'plt_hide_boldgrid_backup_menus', 11);
Where do I put this code?
How to Hide Total Upkeep Dashboard Widgets
function plt_hide_boldgrid_backup_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "BoldGrid Notifications" widget.
remove_meta_box('boldgrid-notifications', 'dashboard', 'normal');
//Remove the "BoldGrid News" widget.
remove_meta_box('boldgrid_news_widget', 'dashboard', 'side');
}
add_action('wp_dashboard_setup', 'plt_hide_boldgrid_backup_dashboard_widgets', 20);