Tips on Customizing Classified Listing

How to Hide Classified Listing Admin Menus

function plt_hide_classified_listing_menus() {
	//Hide "Classified Listing".
	remove_menu_page('edit.php?post_type=rtcl_listing');
	//Hide "Classified Listing → All Listings".
	remove_submenu_page('edit.php?post_type=rtcl_listing', 'edit.php?post_type=rtcl_listing');
	//Hide "Classified Listing → Add New".
	remove_submenu_page('edit.php?post_type=rtcl_listing', 'post-new.php?post_type=rtcl_listing');
	//Hide "Classified Listing → Categories".
	remove_submenu_page('edit.php?post_type=rtcl_listing', 'edit-tags.php?taxonomy=rtcl_category&post_type=rtcl_listing');
	//Hide "Classified Listing → Locations".
	remove_submenu_page('edit.php?post_type=rtcl_listing', 'edit-tags.php?taxonomy=rtcl_location&post_type=rtcl_listing');
	//Hide "Classified Listing → Listing Types".
	remove_submenu_page('edit.php?post_type=rtcl_listing', 'rtcl-listing-type');
	//Hide "Classified Listing → Custom Fields".
	remove_submenu_page('edit.php?post_type=rtcl_listing', 'edit.php?post_type=rtcl_cfg');
	//Hide "Classified Listing → Payment History".
	remove_submenu_page('edit.php?post_type=rtcl_listing', 'edit.php?post_type=rtcl_payment');
	//Hide "Classified Listing → Pricing".
	remove_submenu_page('edit.php?post_type=rtcl_listing', 'edit.php?post_type=rtcl_pricing');
	//Hide "Classified Listing → Settings".
	remove_submenu_page('edit.php?post_type=rtcl_listing', 'rtcl-settings');
	//Hide "Classified Listing → Import".
	remove_submenu_page('edit.php?post_type=rtcl_listing', 'rtcl-import-export');
}

add_action('admin_menu', 'plt_hide_classified_listing_menus', 61);

Where do I put this code?

How to Hide Classified Listing Meta Boxes

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

	//Hide the "Static Report" meta box.
	remove_meta_box('rtcl_listing_moderation', $screen->id, 'side');
	//Hide the "Listing Details" meta box.
	remove_meta_box('rtcl_listing_details', $screen->id, 'normal');
	//Hide the "Contact Details" meta box.
	remove_meta_box('rtcl_listing_contact_details', $screen->id, 'normal');
	//Hide the "Gallery" meta box.
	remove_meta_box('rtcl_gallery', $screen->id, 'normal');
	//Hide the "Payment Actions" meta box.
	remove_meta_box('rtcl-payment-actions', $screen->id, 'side');
	//Hide the "Payment notes" meta box.
	remove_meta_box('rtcl-payment-notes', $screen->id, 'side');
	//Hide the "Payment Data" meta box.
	remove_meta_box('rtcl-payment-data', $screen->id, 'normal');
	//Hide the "Items" meta box.
	remove_meta_box('rtcl-payment-items', $screen->id, 'normal');
	//Hide the "Pricing Options" meta box.
	remove_meta_box('rtcl_pricing', $screen->id, 'normal');
}

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