How to Hide NutsForPress Sort Any Posts Admin Menus

function plt_hide_nutsforpress_sort_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 → Sort Any Posts" menu.
	remove_submenu_page('nfproot-settings', 'nfpsap-settings');
}

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

Where do I put this code?