Tips on Customizing User Feedback – Create Interactive Feedback Form, User Surveys, and Polls in Seconds

How to Hide UserFeedback Lite Admin Menus

function plt_hide_userfeedback_lite_menus() {
	//Hide "UserFeedback1".
	remove_menu_page('userfeedback_surveys');
	//Hide "UserFeedback1 → Surveys".
	remove_submenu_page('userfeedback_surveys', 'userfeedback_surveys');
	//Hide "UserFeedback1 → Results".
	remove_submenu_page('userfeedback_surveys', 'userfeedback_results');
	//Hide "UserFeedback1 → Settings".
	remove_submenu_page('userfeedback_surveys', 'userfeedback_settings');
	//Hide "UserFeedback1 → Addons".
	remove_submenu_page('userfeedback_surveys', 'userfeedback_addons');
	//Hide "UserFeedback1 → Integrations".
	remove_submenu_page('userfeedback_surveys', 'http://127.0.0.1/wp-admin/admin.php?page=userfeedback_settings#/integrations');
	//Hide "UserFeedback1 → SMTP".
	remove_submenu_page('userfeedback_surveys', 'userfeedback_smtp');
	//Hide "UserFeedback1 → About Us".
	remove_submenu_page('userfeedback_surveys', 'http://127.0.0.1/wp-admin/admin.php?page=userfeedback_settings#/about');
	//Hide "UserFeedback1 → Upgrade to Pro".
	remove_submenu_page('userfeedback_surveys', 'https://www.userfeedback.com/lite/?utm_source=liteplugin&utm_medium=admin-menu&utm_campaign=submenu&utm_content=1.2.0');
}

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

Where do I put this code?

How to Hide the "UserFeedback" Dashboard Widget

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

	//Remove the "UserFeedback" widget.
	remove_meta_box('userfeedback_surveys_widget', 'dashboard', 'normal');
}

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