Tips on Customizing easyReservations

How to Hide easyReservations Admin Menus

function plt_hide_easyreservations_menus() {
	//Hide "Reservations".
	remove_menu_page('reservations');
	//Hide "Reservations → Orders".
	remove_submenu_page('reservations', 'edit.php?post_type=easy_order');
	//Hide "Reservations → Reservations".
	remove_submenu_page('reservations', 'edit.php?post_type=easy_reservation');
	//Hide "Reservations → Resources".
	remove_submenu_page('reservations', 'edit.php?post_type=easy-rooms');
	//Hide "Reservations → Availability".
	remove_submenu_page('reservations', 'reservation-availability');
	//Hide "Reservations → Settings".
	remove_submenu_page('reservations', 'er-settings');
}

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

Where do I put this code?

How to Hide easyReservations Meta Boxes

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

	//Hide the "Order data" meta box.
	remove_meta_box('easyreservations-order-data', $screen->id, 'normal');
	//Hide the "Receipt" meta box.
	remove_meta_box('easyreservations-order-items', $screen->id, 'normal');
	//Hide the "Order actions" meta box.
	remove_meta_box('easyreservations-order-actions', $screen->id, 'side');
	//Hide the "Order notes" meta box.
	remove_meta_box('easyreservations-order-notes', $screen->id, 'side');
	//Hide the "Resource gallery" meta box.
	remove_meta_box('easyreservations-resource-images', $screen->id, 'side');
}

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