How to Hide WCP OpenWeather Admin Menus

function plt_hide_wcp_openweather_menus() {
	//Hide the "WCP Weather" menu.
	remove_menu_page('wcp-weather-main');
	//Hide the "WCP Weather → Settings" menu.
	remove_submenu_page('wcp-weather-main', 'wcp-weather');
	//Hide the "WCP Weather → Theme Settings" menu.
	remove_submenu_page('wcp-weather-main', 'wcp-theme');
}

add_action('admin_menu', 'plt_hide_wcp_openweather_menus', 1000);

Where do I put this code?