Tips on Customizing User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor

How to Hide Profile Builder Admin Menus

function plt_hide_profile_builder_menus() {
	//Hide "Profile Builder".
	remove_menu_page('profile-builder');
	//Hide "Profile Builder → Dashboard".
	remove_submenu_page('profile-builder', 'profile-builder-dashboard');
	//Hide "Profile Builder → Basic Information".
	remove_submenu_page('profile-builder', 'profile-builder-basic-info');
	//Hide "Profile Builder → Settings".
	remove_submenu_page('profile-builder', 'profile-builder-general-settings');
	//Hide "Profile Builder → Form Fields".
	remove_submenu_page('profile-builder', 'manage-fields');
	//Hide "Profile Builder → Private Website".
	remove_submenu_page('profile-builder', 'profile-builder-private-website');
	//Hide "Profile Builder → Content Restriction".
	remove_submenu_page('profile-builder', 'profile-builder-content_restriction');
	//Hide "Profile Builder → Toolbox".
	remove_submenu_page('profile-builder', 'profile-builder-toolbox-settings');
	//Hide "Profile Builder → Admin Email Customizer".
	remove_submenu_page('profile-builder', 'admin-email-customizer');
	//Hide "Profile Builder → User Email Customizer".
	remove_submenu_page('profile-builder', 'user-email-customizer');
	//Hide "Profile Builder → Add-Ons".
	remove_submenu_page('profile-builder', 'profile-builder-add-ons');
}

add_action('admin_menu', 'plt_hide_profile_builder_menus', 29);

Where do I put this code?

How to Hide Profile Builder Meta Boxes

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

	//Hide the "Common Settings" meta box.
	remove_meta_box('aec_common_settings', $screen->id, 'normal');
	//Hide the "Registration: Default & Email Confirmation" meta box.
	remove_meta_box('aec_default_registration', $screen->id, 'normal');
	//Hide the "User Password Reset" meta box.
	remove_meta_box('aec_user_password_reset', $screen->id, 'normal');
	//Hide the "Common Settings" meta box.
	remove_meta_box('uec_common_settings', $screen->id, 'normal');
	//Hide the "Default Registration" meta box.
	remove_meta_box('uec_default_registration', $screen->id, 'normal');
	//Hide the "Registration with Email Confirmation" meta box.
	remove_meta_box('uec_reg_with_email_confirmation', $screen->id, 'normal');
	//Hide the "Password Reset Email" meta box.
	remove_meta_box('uec_reset', $screen->id, 'normal');
	//Hide the "Password Reset Success Email" meta box.
	remove_meta_box('uec_reset_success', $screen->id, 'normal');
	//Hide the "Change Email Address Request Email" meta box.
	remove_meta_box('uec_change_email_request', $screen->id, 'normal');
	//Hide the "Changed Email Address Notification" meta box.
	remove_meta_box('uec_change_email', $screen->id, 'normal');
	//Hide the "Form Field Properties" meta box.
	remove_meta_box('manage-fields', $screen->id, 'normal');
	//Hide the "Form Shortcodes" meta box.
	remove_meta_box('manage-fields-info', $screen->id, 'side');
}

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