function plt_hide_bp_group_automations_menus() {
//Hide the "Settings → BuddyPress Group Automations" menu.
remove_submenu_page('options-general.php', 'buddypress-group-automations-settings-page');
}
add_action('admin_menu', 'plt_hide_bp_group_automations_menus', 11);