How to Hide Genuine product checker Admin Menus

function plt_hide_genuine_product_checker_menus() {
	//Hide the "Products list" menu.
	remove_menu_page('products_list');
	//Hide the "Settings → Genpro settings" menu.
	remove_submenu_page('options-general.php', 'genpro');
}

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

Where do I put this code?