How to Hide Doliconnect Admin Menus

function plt_hide_doliconnect_menus() {
	//Hide "Users → Gestion des admins".
	remove_submenu_page('users.php', 'doliconnect_admin_page');

	//Hide "Doliconnect".
	remove_menu_page('ptibogxiv_management_page');
	//Hide "Doliconnect → Doliconnect".
	remove_submenu_page('ptibogxiv_management_page', 'ptibogxiv_management_page');
	//Hide "Doliconnect → Key and settings".
	remove_submenu_page('ptibogxiv_management_page', 'doliconnect_network_page');
}

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

Where do I put this code?