function plt_hide_content_excel_importer_menus() {
//Hide the "WPFactory" menu.
remove_menu_page('wpfactory');
//Hide the "WPFactory → Recommendations" menu.
remove_submenu_page('wpfactory', 'wpfactory-cross-selling');
//Hide the "WPFactory → Content Excel Importer" menu.
remove_submenu_page('wpfactory', 'content-excel-importer');
}
add_action('admin_menu', 'plt_hide_content_excel_importer_menus', 12);