-
Home
-
Duplicator – Backups & Migration Plugin – Cloud Backups, Scheduled Backups, & More
- Tips
How to Hide Duplicator Admin Menus
function plt_hide_duplicator_menus() {
//Hide "Duplicator".
remove_menu_page('duplicator');
//Hide "Duplicator → Backups".
remove_submenu_page('duplicator', 'duplicator');
//Hide "Duplicator → Import Backups".
remove_submenu_page('duplicator', 'duplicator-import');
//Hide "Duplicator → Schedule BackupsNEW!".
remove_submenu_page('duplicator', 'duplicator-schedules');
//Hide "Duplicator → Storage".
remove_submenu_page('duplicator', 'duplicator-storage');
//Hide "Duplicator → Tools".
remove_submenu_page('duplicator', 'duplicator-tools');
//Hide "Duplicator → Settings".
remove_submenu_page('duplicator', 'duplicator-settings');
//Hide "Duplicator → About Us".
remove_submenu_page('duplicator', 'duplicator-about-us');
//Hide "Duplicator → Upgrade to Pro".
remove_submenu_page('duplicator', 'https://duplicator.com/lite-upgrade/?utm_medium=admin-menu&utm_content=Upgrade+to+Pro&utm_source=WordPress&utm_campaign=liteplugin');
}
add_action('admin_menu', 'plt_hide_duplicator_menus', 11);
Where do I put this code?
How to Hide the "Duplicator" Dashboard Widget
function plt_hide_duplicator_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "Duplicator" widget.
remove_meta_box('duplicator_dashboard_widget', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_duplicator_dashboard_widgets', 20);