Tips on Customizing WPForms – Easy Form Builder for WordPress – Contact Forms, Payment Forms, Surveys, & More

How to Hide WPForms Lite Admin Menus

function plt_hide_wpforms_lite_menus() {
	//Hide "WPForms".
	remove_menu_page('wpforms-overview');
	//Hide "WPForms → All Forms".
	remove_submenu_page('wpforms-overview', 'wpforms-overview');
	//Hide "WPForms → Add New".
	remove_submenu_page('wpforms-overview', 'wpforms-builder');
	//Hide "WPForms → Entries".
	remove_submenu_page('wpforms-overview', 'wpforms-entries');
	//Hide "WPForms → PaymentsNEW!".
	remove_submenu_page('wpforms-overview', 'wpforms-payments');
	//Hide "WPForms → Form Templates".
	remove_submenu_page('wpforms-overview', 'wpforms-templates');
	//Hide "WPForms → Settings".
	remove_submenu_page('wpforms-overview', 'wpforms-settings');
	//Hide "WPForms → Tools".
	remove_submenu_page('wpforms-overview', 'wpforms-tools');
	//Hide "WPForms → Addons".
	remove_submenu_page('wpforms-overview', 'wpforms-addons');
	//Hide "WPForms → Analytics".
	remove_submenu_page('wpforms-overview', 'wpforms-analytics');
	//Hide "WPForms → SMTP".
	remove_submenu_page('wpforms-overview', 'wpforms-smtp');
	//Hide "WPForms → About Us".
	remove_submenu_page('wpforms-overview', 'wpforms-about');
	//Hide "WPForms → Community".
	remove_submenu_page('wpforms-overview', 'wpforms-community');
	//Hide "WPForms → Upgrade to Pro".
	remove_submenu_page('wpforms-overview', 'https://wpforms.com/lite-upgrade/?utm_campaign=liteplugin&utm_source=WordPress&utm_medium=admin-menu&utm_locale=en_US&utm_content=Upgrade%20to%20Pro%20-%20dashboard');
}

add_action('admin_menu', 'plt_hide_wpforms_lite_menus', 2147483647);

Where do I put this code?

How to Hide the "WPForms" Dashboard Widget

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

	//Remove the "WPForms" widget.
	remove_meta_box('wpforms_reports_widget_lite', 'dashboard', 'normal');
}

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