How to Hide Matomo Analytics - Ethical Stats. Powerful Insights. Admin Menus

function plt_hide_matomo_menus() {
	//Hide "Matomo Analytics".
	remove_menu_page('matomo');
	//Hide "Matomo Analytics → Get Started".
	remove_submenu_page('matomo', 'matomo-get-started');
	//Hide "Matomo Analytics → Summary".
	remove_submenu_page('matomo', 'matomo-summary');
	//Hide "Matomo Analytics → Reporting".
	remove_submenu_page('matomo', 'matomo-reporting');
	//Hide "Matomo Analytics → Tag Manager".
	remove_submenu_page('matomo', 'matomo-tagmanager');
	//Hide "Matomo Analytics → Settings".
	remove_submenu_page('matomo', 'matomo-settings');
	//Hide "Matomo Analytics → Marketplace".
	remove_submenu_page('matomo', 'matomo-marketplace');
	//Hide "Matomo Analytics → Diagnostics".
	remove_submenu_page('matomo', 'matomo-systemreport');
	//Hide "Matomo Analytics → Help".
	remove_submenu_page('matomo', 'matomo-about');
}

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

Where do I put this code?