How to Hide GeoIP Detection Admin Menus

function plt_hide_geoip_detect_menus() {
	//Hide the "Tools → GeoIP Lookup" menu.
	remove_submenu_page('tools.php', 'geoip-detect/geoip-detect.php');
	//Hide the "Settings → GeoIP Detection" menu.
	remove_submenu_page('options-general.php', 'geoip-detect/geoip-detect.php');
}

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

Where do I put this code?