How to Hide Photonic Gallery & Lightbox for Flickr, SmugMug, Google Photos & Others Admin Menus

function plt_hide_photonic_menus() {
	//Hide "Photonic".
	remove_menu_page('photonic-options-manager');
	//Hide "Photonic → Settings".
	remove_submenu_page('photonic-options-manager', 'photonic-options-manager');
	//Hide "Photonic → Getting Started".
	remove_submenu_page('photonic-options-manager', 'photonic-getting-started');
	//Hide "Photonic → Authentication".
	remove_submenu_page('photonic-options-manager', 'photonic-auth');
	//Hide "Photonic → Switch to Gutenberg".
	remove_submenu_page('photonic-options-manager', 'photonic-gutenberg');
	//Hide "Photonic → Helpers".
	remove_submenu_page('photonic-options-manager', 'photonic-helpers');
}

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

Where do I put this code?