Tips on Customizing Ultimate FAQ – WordPress FAQ Plugin

How to Hide Ultimate FAQs Admin Menus

function plt_hide_ultimate_faqs_menus() {
	//Hide "FAQs".
	remove_menu_page('edit.php?post_type=ufaq');
	//Hide "FAQs → Dashboard".
	remove_submenu_page('edit.php?post_type=ufaq', 'ewd-ufaq-dashboard');
	//Hide "FAQs → All FAQs".
	remove_submenu_page('edit.php?post_type=ufaq', 'edit.php?post_type=ufaq');
	//Hide "FAQs → Add New".
	remove_submenu_page('edit.php?post_type=ufaq', 'post-new.php?post_type=ufaq');
	//Hide "FAQs → FAQ Categories".
	remove_submenu_page('edit.php?post_type=ufaq', 'edit-tags.php?taxonomy=ufaq-category&post_type=ufaq');
	//Hide "FAQs → FAQ Tags".
	remove_submenu_page('edit.php?post_type=ufaq', 'edit-tags.php?taxonomy=ufaq-tag&post_type=ufaq');
	//Hide "FAQs → Export".
	remove_submenu_page('edit.php?post_type=ufaq', 'ewd-ufaq-export');
	//Hide "FAQs → Import".
	remove_submenu_page('edit.php?post_type=ufaq', 'ewd-ufaq-import');
	//Hide "FAQs → Settings".
	remove_submenu_page('edit.php?post_type=ufaq', 'ewd-ufaq-settings');
}

add_action('admin_menu', 'plt_hide_ultimate_faqs_menus', 100);

Where do I put this code?

How to Hide Ultimate FAQs Meta Boxes

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

	//Hide the "FAQ Details" meta box.
	remove_meta_box('ufaq', $screen->id, 'normal');
	//Hide the "Need Help?" meta box.
	remove_meta_box('ewd_ufaq_meta_need_help', $screen->id, 'side');
}

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