Tips on Customizing Themify Builder

How to Hide Themify Builder Admin Menus

function plt_hide_themify_builder_menus() {
	//Hide "Pages → Add Builder Page".
	remove_submenu_page('edit.php?post_type=page', '#tb_builder_page');

	//Hide "Themify Builder".
	remove_menu_page('themify-builder');
	//Hide "Themify Builder → Settings".
	remove_submenu_page('themify-builder', 'themify-builder');
	//Hide "Themify Builder → Saved Layouts".
	remove_submenu_page('themify-builder', 'edit.php?post_type=tbuilder_layout');
	//Hide "Themify Builder → Layout Parts".
	remove_submenu_page('themify-builder', 'edit.php?post_type=tbuilder_layout_part');
	//Hide "Themify Builder → Global Styles".
	remove_submenu_page('themify-builder', 'themify-global-styles');
	//Hide "Themify Builder → Custom Fonts".
	remove_submenu_page('themify-builder', 'edit.php?post_type=tb_cf');
	//Hide "Themify Builder → System Status".
	remove_submenu_page('themify-builder', 'tf-status');
}

add_action('admin_menu', 'plt_hide_themify_builder_menus', 11);

Where do I put this code?

How to Hide Themify Builder Meta Boxes

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

	//Hide the "Themify Custom Panel" meta box.
	remove_meta_box('themify-meta-boxes', $screen->id, 'normal');
	//Hide the "Manage Font Files" meta box.
	remove_meta_box('tm-cf', $screen->id, 'normal');
}

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

How to Hide the "Themify News" Dashboard Widget

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

	//Remove the "Themify News" widget.
	remove_meta_box('themify_news', 'dashboard', 'normal');
}

add_action('wp_dashboard_setup', 'plt_hide_themify_builder_dashboard_widgets', 20);