How to Hide Events Shortcodes For The Events Calendar Admin Menus

function plt_hide_template_events_calendar_menus() {
	//Hide the "Events Addons" menu.
	remove_menu_page('cool-plugins-events-addon');
	//Hide the "Events Addons → Dashboard" menu.
	remove_submenu_page('cool-plugins-events-addon', 'cool-plugins-events-addon');
	//Hide the "Events Addons → Shortcodes Settings" menu.
	remove_submenu_page('cool-plugins-events-addon', 'tribe_events-events-template-settings');
}

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

Where do I put this code?