How to Hide NutsForPress Duplicate Any Posts Admin Menus

function plt_hide_nutsforpress_duplicate_any_posts_menus() {
	//Hide the "NutsForPress" menu.
	remove_menu_page('nfproot-settings');
	//Hide the "NutsForPress → NutsForPress" menu.
	remove_submenu_page('nfproot-settings', 'nfproot-settings');
	//Hide the "NutsForPress → Duplicate Any Posts" menu.
	remove_submenu_page('nfproot-settings', 'nfpdap-settings');
}

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

Where do I put this code?