Tips on Customizing Tickera – WordPress Event Ticketing

How to Hide Tickera Admin Menus

function plt_hide_tickera_event_ticketing_system_menus() {
	//Hide "Dashboard →".
	remove_submenu_page('index.php', 'tc-installation-wizard');

	//Hide "Tickera".
	remove_menu_page('edit.php?post_type=tc_events');
	//Hide "Tickera → Events".
	remove_submenu_page('edit.php?post_type=tc_events', 'edit.php?post_type=tc_events');
	//Hide "Tickera → Create new".
	remove_submenu_page('edit.php?post_type=tc_events', 'post-new.php?post_type=tc_events');
	//Hide "Tickera → Event Categories".
	remove_submenu_page('edit.php?post_type=tc_events', 'edit-tags.php?taxonomy=event_category&post_type=tc_events');
	//Hide "Tickera → Ticket Types".
	remove_submenu_page('edit.php?post_type=tc_events', 'edit.php?post_type=tc_tickets');
	//Hide "Tickera → Attendees & Tickets".
	remove_submenu_page('edit.php?post_type=tc_events', 'edit.php?post_type=tc_tickets_instances');
	//Hide "Tickera → Orders".
	remove_submenu_page('edit.php?post_type=tc_events', 'edit.php?post_type=tc_orders');
	//Hide "Tickera → Ticket Templates".
	remove_submenu_page('edit.php?post_type=tc_events', 'tc_ticket_templates');
	//Hide "Tickera → Barcode Reader".
	remove_submenu_page('edit.php?post_type=tc_events', 'tc_barcode_reader');
	//Hide "Tickera → Discount Codes".
	remove_submenu_page('edit.php?post_type=tc_events', 'tc_discount_codes');
	//Hide "Tickera → Settings".
	remove_submenu_page('edit.php?post_type=tc_events', 'tc_settings');
	//Hide "Tickera → Add-Ons".
	remove_submenu_page('edit.php?post_type=tc_events', 'tickera-event-ticketing-system-addons');
}

add_action('admin_menu', 'plt_hide_tickera_event_ticketing_system_menus', 1000000000);

Where do I put this code?

How to Hide Tickera Meta Boxes

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

	//Hide the "Check-in List" meta box.
	remove_meta_box('attendees-checkin-details-tc-metabox-wrapper', $screen->id, 'normal');
	//Hide the "Order Details" meta box.
	remove_meta_box('order-details-tc-metabox-wrapper', $screen->id, 'normal');
}

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

How to Hide the "Ticketing Store at a Glance" Dashboard Widget

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

	//Remove the "Ticketing Store at a Glance" widget.
	remove_meta_box('tc_store_report', 'dashboard', 'normal');
}

add_action('wp_dashboard_setup', 'plt_hide_tickera_event_ticketing_system_dashboard_widgets', 20);