Tips on Customizing WP User Frontend – Membership, Profile, Registration & Post Submission Plugin for WordPress

How to Hide WP User Frontend Admin Menus

function plt_hide_wp_user_frontend_menus() {
	//Hide "Dashboard → WPUF Setup".
	remove_submenu_page('index.php', 'wpuf-setup');

	//Hide "User Frontend".
	remove_menu_page('wp-user-frontend');
	//Hide "User Frontend → Post Forms".
	remove_submenu_page('wp-user-frontend', 'wpuf-post-forms');
	//Hide "User Frontend → Registration Forms".
	remove_submenu_page('wp-user-frontend', 'wpuf-profile-forms');
	//Hide "User Frontend → Subscriptions".
	remove_submenu_page('wp-user-frontend', 'edit.php?post_type=wpuf_subscription');
	//Hide "User Frontend → Coupons".
	remove_submenu_page('wp-user-frontend', 'wpuf_coupon');
	//Hide "User Frontend → Transactions".
	remove_submenu_page('wp-user-frontend', 'wpuf_transaction');
	//Hide "User Frontend → Tools".
	remove_submenu_page('wp-user-frontend', 'wpuf_tools');
	//Hide "User Frontend → Premium".
	remove_submenu_page('wp-user-frontend', 'wpuf_premium');
	//Hide "User Frontend → Help".
	remove_submenu_page('wp-user-frontend', 'wpuf-support');
	//Hide "User Frontend → Settings".
	remove_submenu_page('wp-user-frontend', 'wpuf-settings');
}

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

Where do I put this code?

How to Hide WP User Frontend Meta Boxes

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

	//Hide the "WPUF Form" meta box.
	remove_meta_box('wpuf-select-form', $screen->id, 'side');
	//Hide the "WPUF Lock User" meta box.
	remove_meta_box('wpuf-post-lock', $screen->id, 'side');
	//Hide the "WPUF Custom Fields" meta box.
	remove_meta_box('wpuf-custom-fields', $screen->id, 'normal');
	//Hide the "Pack Description" meta box.
	remove_meta_box('wpuf-metabox-subscription', $screen->id, 'normal');
	//Hide the "Subscription Options" meta box.
	remove_meta_box('wpuf_subs_metabox', $screen->id, 'advanced');
}

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