Tips on Customizing Easy Hotel Booking – The Best Hotel Booking Plugin for WordPress

How to Hide Easy Hotel Admin Menus

function plt_hide_easy_hotel_menus() {
	//Hide "Easy Hotel".
	remove_menu_page('edit.php?post_type=eshb_accomodation');
	//Hide "Easy Hotel → All Accomodations".
	remove_submenu_page('edit.php?post_type=eshb_accomodation', 'edit.php?post_type=eshb_accomodation');
	//Hide "Easy Hotel → Add New Accomodation".
	remove_submenu_page('edit.php?post_type=eshb_accomodation', 'post-new.php?post_type=eshb_accomodation');
	//Hide "Easy Hotel → Categories".
	remove_submenu_page('edit.php?post_type=eshb_accomodation', 'edit-tags.php?taxonomy=eshb_category&post_type=eshb_accomodation');
	//Hide "Easy Hotel → Services".
	remove_submenu_page('edit.php?post_type=eshb_accomodation', 'edit.php?post_type=eshb_service');
	//Hide "Easy Hotel → Seasons & Pricing".
	remove_submenu_page('edit.php?post_type=eshb_accomodation', 'edit.php?post_type=eshb_session');
	//Hide "Easy Hotel → Coupons".
	remove_submenu_page('edit.php?post_type=eshb_accomodation', 'edit.php?post_type=eshb_coupon');
	//Hide "Easy Hotel → Bookings".
	remove_submenu_page('edit.php?post_type=eshb_accomodation', 'edit.php?post_type=eshb_booking');
	//Hide "Easy Hotel → Booking Calendar".
	remove_submenu_page('edit.php?post_type=eshb_accomodation', 'eshb_bookings_calendar');
	//Hide "Easy Hotel → iCal Settings".
	remove_submenu_page('edit.php?post_type=eshb_accomodation', 'easy-hotel-ical-settings');
	//Hide "Easy Hotel → DB Settings".
	remove_submenu_page('edit.php?post_type=eshb_accomodation', 'easy-hotel-db-settings');
	//Hide "Easy Hotel → Reviews Settings".
	remove_submenu_page('edit.php?post_type=eshb_accomodation', 'easy-hotel-reviews-settings');
	//Hide "Easy Hotel → Advanced Pricing Settings".
	remove_submenu_page('edit.php?post_type=eshb_accomodation', 'easy-hotel-advanced-pricing-settings');
	//Hide "Easy Hotel → Settings".
	remove_submenu_page('edit.php?post_type=eshb_accomodation', 'easy-hotel-settings');
	//Hide "Easy Hotel → Themes & Addons".
	remove_submenu_page('edit.php?post_type=eshb_accomodation', 'edit.php?post_type=eshb_addons');
}

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

Where do I put this code?

How to Hide Easy Hotel Meta Boxes

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

	//Hide the "Options & Features" meta box.
	remove_meta_box('eshb_accomodation_metaboxes', $screen->id, 'advanced');
	//Hide the "Accomodation Options" meta box.
	remove_meta_box('eshb_accomodation_metaboxes_side', $screen->id, 'side');
	//Hide the "Seasons Options" meta box.
	remove_meta_box('eshb_session_metaboxes', $screen->id, 'advanced');
	//Hide the "Service Options" meta box.
	remove_meta_box('eshb_service_metaboxes', $screen->id, 'advanced');
	//Hide the "Booking Options" meta box.
	remove_meta_box('eshb_booking_metaboxes', $screen->id, 'advanced');
	//Hide the "Coupon Options" meta box.
	remove_meta_box('eshb_coupon_metaboxes', $screen->id, 'advanced');
	//Hide the "Customer Details" meta box.
	remove_meta_box('eshb_booking_request_customer_metaboxes', $screen->id, 'advanced');
	//Hide the "Booking Options" meta box.
	remove_meta_box('eshb_booking_request_metaboxes', $screen->id, 'advanced');
}

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