Tips on Customizing AweBooking – Hotel Booking System

How to Hide AweBooking Admin Menus

function plt_hide_awebooking_menus() {
	//Hide "AweBooking".
	remove_menu_page('awebooking');
	//Hide "AweBooking → About".
	remove_submenu_page('awebooking', 'admin.php?awebooking=/about');
	//Hide "AweBooking → Bookings".
	remove_submenu_page('awebooking', 'edit.php?post_type=awebooking');
	//Hide "AweBooking → Calendar".
	remove_submenu_page('awebooking', 'admin.php?awebooking=/calendar');
	//Hide "AweBooking → Pricing".
	remove_submenu_page('awebooking', 'admin.php?awebooking=/rates');
	//Hide "AweBooking → Settings".
	remove_submenu_page('awebooking', 'admin.php?awebooking=/settings');
	//Hide "AweBooking → Tools".
	remove_submenu_page('awebooking', 'admin.php?awebooking=/tools');

	//Hide "Hotel".
	remove_menu_page('edit.php?post_type=room_type');
	//Hide "Hotel → Room Types".
	remove_submenu_page('edit.php?post_type=room_type', 'edit.php?post_type=room_type');
	//Hide "Hotel → Amenities".
	remove_submenu_page('edit.php?post_type=room_type', 'edit-tags.php?taxonomy=hotel_amenity&post_type=room_type');
	//Hide "Hotel → Services".
	remove_submenu_page('edit.php?post_type=room_type', 'edit.php?post_type=hotel_service');
}

add_action('admin_menu', 'plt_hide_awebooking_menus', 51);

Where do I put this code?

How to Hide AweBooking Meta Boxes

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

	//Hide the "Actions" meta box.
	remove_meta_box('awebooking-booking-actions', $screen->id, 'side');
	//Hide the "Notes" meta box.
	remove_meta_box('awebooking-booking-notes', $screen->id, 'side');
	//Hide the "Booking Data" meta box.
	remove_meta_box('awebooking-booking-data', $screen->id, 'advanced');
	//Hide the "Booking Rooms" meta box.
	remove_meta_box('awebooking-booking-rooms', $screen->id, 'advanced');
	//Hide the "Payments" meta box.
	remove_meta_box('awebooking-booking-payments', $screen->id, 'advanced');
	//Hide the "Room Type Data" meta box.
	remove_meta_box('awebooking-room-type-data', $screen->id, 'advanced');
	//Hide the "Hotel Information" meta box.
	remove_meta_box('awebooking-hotel-info', $screen->id, 'advanced');
	//Hide the "Service" meta box.
	remove_meta_box('awebooking-service-data', $screen->id, 'advanced');
}

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