Tips on Customizing Groundhogg — Marketing Automation & CRM for WordPress

How to Hide Groundhogg Admin Menus

function plt_hide_groundhogg_menus() {
	//Hide "Groundhogg".
	remove_menu_page('groundhogg');
	//Hide "Groundhogg → Welcome".
	remove_submenu_page('groundhogg', 'groundhogg');
	//Hide "Groundhogg → Contacts".
	remove_submenu_page('groundhogg', 'gh_contacts');
	//Hide "Groundhogg → Tags".
	remove_submenu_page('groundhogg', 'gh_tags');
	//Hide "Groundhogg → Emails".
	remove_submenu_page('groundhogg', 'gh_emails');
	//Hide "Groundhogg → Broadcasts".
	remove_submenu_page('groundhogg', 'gh_broadcasts');
	//Hide "Groundhogg → Funnels".
	remove_submenu_page('groundhogg', 'gh_funnels');
	//Hide "Groundhogg → Events".
	remove_submenu_page('groundhogg', 'gh_events');
	//Hide "Groundhogg → Tools".
	remove_submenu_page('groundhogg', 'gh_tools');
	//Hide "Groundhogg → Settings".
	remove_submenu_page('groundhogg', 'gh_settings');
	//Hide "Groundhogg → Help".
	remove_submenu_page('groundhogg', 'gh_help');
	//Hide "Groundhogg → Go Pro".
	remove_submenu_page('groundhogg', 'gh_go_pro');
}

add_action('admin_menu', 'plt_hide_groundhogg_menus', 1000);

Where do I put this code?

How to Hide Groundhogg Dashboard Widgets

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

	//Remove the "Time Range" widget.
	remove_meta_box('time_range', 'dashboard', 'normal');
	//Remove the "Contacts By Country" widget.
	remove_meta_box('contacts_by_country', 'dashboard', 'normal');
	//Remove the "Contacts By Region" widget.
	remove_meta_box('contacts_by_region', 'dashboard', 'normal');
	//Remove the "Contacts By Optin Status" widget.
	remove_meta_box('contacts_by_optin_status', 'dashboard', 'normal');
	//Remove the "Last Broadcast" widget.
	remove_meta_box('last_broadcast', 'dashboard', 'normal');
	//Remove the "Email Activity" widget.
	remove_meta_box('email_activity', 'dashboard', 'normal');
	//Remove the "New Contacts" widget.
	remove_meta_box('new_contacts', 'dashboard', 'normal');
	//Remove the "Form Activity" widget.
	remove_meta_box('form_activity', 'dashboard', 'normal');
	//Remove the "Funnel Breakdown" widget.
	remove_meta_box('funnel_breakdown', 'dashboard', 'normal');
	//Remove the "Contacts By Search Engine" widget.
	remove_meta_box('contacts_by_search_engine', 'dashboard', 'normal');
	//Remove the "Contacts By Lead Source" widget.
	remove_meta_box('contacts_by_lead_source', 'dashboard', 'normal');
	//Remove the "Contacts By Social Media" widget.
	remove_meta_box('contacts_by_social_media', 'dashboard', 'normal');
	//Remove the "Contacts By Source Page" widget.
	remove_meta_box('contacts_by_source_page', 'dashboard', 'normal');
	//Remove the "Contacts By UTM Campaign" widget.
	remove_meta_box('contacts_by_utm_campaign', 'dashboard', 'normal');
}

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