How to Hide Gatey - Login & SSO with Amazon Cognito Admin Menus

function plt_hide_gatey_menus() {
	//Hide "SmartCloud".
	remove_menu_page('hub-for-wpsuiteio');
	//Hide "SmartCloud → Connect your Site".
	remove_submenu_page('hub-for-wpsuiteio', 'hub-for-wpsuiteio');
	//Hide "SmartCloud → Global Settings".
	remove_submenu_page('hub-for-wpsuiteio', 'hub-for-wpsuiteio-settings');
	//Hide "SmartCloud → Gatey Settings".
	remove_submenu_page('hub-for-wpsuiteio', 'gatey');
	//Hide "SmartCloud → Gatey Patterns".
	remove_submenu_page('hub-for-wpsuiteio', 'http://127.0.0.1/wp-admin/edit.php?post_type=wp_block&s=gatey');
}

add_action('admin_menu', 'plt_hide_gatey_menus', 23);

Where do I put this code?