Tips on Customizing Smartlib Tools

How to Hide Smartlib Tools Admin Menus

function plt_hide_smartlib_tools_menus() {
	//Hide "Portfolio items".
	remove_menu_page('edit.php?post_type=smartlib_portfolio');
	//Hide "Portfolio items → Portfolio items".
	remove_submenu_page('edit.php?post_type=smartlib_portfolio', 'edit.php?post_type=smartlib_portfolio');
	//Hide "Portfolio items → Add New".
	remove_submenu_page('edit.php?post_type=smartlib_portfolio', 'post-new.php?post_type=smartlib_portfolio');
	//Hide "Portfolio items → Portfolio Category".
	remove_submenu_page('edit.php?post_type=smartlib_portfolio', 'edit-tags.php?taxonomy=portfolio_category&post_type=smartlib_portfolio');
	//Hide "Portfolio items → Skills".
	remove_submenu_page('edit.php?post_type=smartlib_portfolio', 'edit-tags.php?taxonomy=portfolio_skills&post_type=smartlib_portfolio');

	//Hide "Team Members".
	remove_menu_page('edit.php?post_type=smartlib_team');
	//Hide "Team Members → Team Members".
	remove_submenu_page('edit.php?post_type=smartlib_team', 'edit.php?post_type=smartlib_team');
	//Hide "Team Members → Add New".
	remove_submenu_page('edit.php?post_type=smartlib_team', 'post-new.php?post_type=smartlib_team');

	//Hide "Testimonials".
	remove_menu_page('edit.php?post_type=smartlib_testimonial');
	//Hide "Testimonials → Testimonials".
	remove_submenu_page('edit.php?post_type=smartlib_testimonial', 'edit.php?post_type=smartlib_testimonial');
	//Hide "Testimonials → Add New".
	remove_submenu_page('edit.php?post_type=smartlib_testimonial', 'post-new.php?post_type=smartlib_testimonial');

	//Hide "FAQ".
	remove_menu_page('edit.php?post_type=smartlib_faq');
	//Hide "FAQ → FAQ".
	remove_submenu_page('edit.php?post_type=smartlib_faq', 'edit.php?post_type=smartlib_faq');
	//Hide "FAQ → Add New".
	remove_submenu_page('edit.php?post_type=smartlib_faq', 'post-new.php?post_type=smartlib_faq');
}

add_action('admin_menu', 'plt_hide_smartlib_tools_menus', 15);

Where do I put this code?

How to Hide the "Additional Fields" Meta Box

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

	//Hide the "Additional Fields" meta box.
	remove_meta_box('standard', $screen->id, 'normal');
}

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