Tips on Customizing Event Tickets and Registration

How to Hide Event Tickets Admin Menus

function plt_hide_event_tickets_menus() {
	//Hide "Events".
	remove_menu_page('tribe-common');
	//Hide "Events → Settings".
	remove_submenu_page('tribe-common', 'tribe-common');
	//Hide "Events → Help".
	remove_submenu_page('tribe-common', 'tribe-help');
	//Hide "Events → Troubleshooting".
	remove_submenu_page('tribe-common', 'tec-troubleshooting');
	//Hide "Events → Event Add-Ons".
	remove_submenu_page('tribe-common', 'tribe-app-shop');
}

add_action('admin_menu', 'plt_hide_event_tickets_menus', 101);

Where do I put this code?

How to Hide the "Tickets" Meta Box

function plt_hide_event_tickets_metaboxes() {
	$screen = get_current_screen();
	if ( !$screen ) {
		return;
	}

	//Hide the "Tickets" meta box.
	remove_meta_box('tribetickets', $screen->id, 'normal');
}

add_action('add_meta_boxes', 'plt_hide_event_tickets_metaboxes', 20);