Tips on Customizing WordPress Backup and Migrate Plugin – Backup Guard

How to Hide Backup Admin Menus

function plt_hide_backup_menus() {
	//Hide "BackupGuard".
	remove_menu_page('backup_guard_backups');
	//Hide "BackupGuard → Backups".
	remove_submenu_page('backup_guard_backups', 'backup_guard_backups');
	//Hide "BackupGuard → Cloud".
	remove_submenu_page('backup_guard_backups', 'backup_guard_cloud');
	//Hide "BackupGuard → Schedule".
	remove_submenu_page('backup_guard_backups', 'backup_guard_schedule');
	//Hide "BackupGuard → Settings".
	remove_submenu_page('backup_guard_backups', 'backup_guard_settings');
	//Hide "BackupGuard → System Info.".
	remove_submenu_page('backup_guard_backups', 'backup_guard_system_info');
	//Hide "BackupGuard → Services".
	remove_submenu_page('backup_guard_backups', 'backup_guard_services');
	//Hide "BackupGuard → Support".
	remove_submenu_page('backup_guard_backups', 'backup_guard_support');
	//Hide "BackupGuard → Why upgrade?".
	remove_submenu_page('backup_guard_backups', 'backup_guard_pro_features');
}

add_action('admin_menu', 'plt_hide_backup_menus', 11);

Where do I put this code?

How to Hide the "Backup Guard" Dashboard Widget

function plt_hide_backup_dashboard_widgets() {
	$screen = get_current_screen();
	if ( !$screen ) {
		return;
	}

	//Remove the "Backup Guard" widget.
	remove_meta_box('backupGuardWidget', 'dashboard', 'normal');
}

add_action('wp_dashboard_setup', 'plt_hide_backup_dashboard_widgets', 20);