Tips on Customizing MailMunch – Grow your Email List

How to Hide MailMunch - Grow Your Email List Admin Menus

function plt_hide_mailmunch_menus() {
	//Hide "Settings → MailMunch".
	remove_submenu_page('options-general.php', 'mailmunch');

	//Hide "Landing Pages".
	remove_menu_page('edit.php?post_type=mailmunch_page');
	//Hide "Landing Pages → All Pages".
	remove_submenu_page('edit.php?post_type=mailmunch_page', 'edit.php?post_type=mailmunch_page');
	//Hide "Landing Pages → Add New Page".
	remove_submenu_page('edit.php?post_type=mailmunch_page', 'post-new.php?post_type=mailmunch_page');

	//Hide "MailMunch".
	remove_menu_page('mailmunch');
	//Hide "MailMunch → Forms".
	remove_submenu_page('mailmunch', 'mailmunch');
	//Hide "MailMunch → Landing Pages".
	remove_submenu_page('mailmunch', 'edit.php?post_type=mailmunch_page');
	//Hide "MailMunch → Autoresponders".
	remove_submenu_page('mailmunch', 'mailmunch-autoresponders');
	//Hide "MailMunch → Settings".
	remove_submenu_page('mailmunch', 'mailmunch-settings');
}

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

Where do I put this code?

How to Hide the "MailMunch" Dashboard Widget

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

	//Remove the "MailMunch" widget.
	remove_meta_box('mailmunch_dashboard_widget', 'dashboard', 'normal');
}

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