How to Hide MailPoet Admin Menus

function plt_hide_mailpoet_menus() {
	//Hide "Tools → Scheduled Actions".
	remove_submenu_page('tools.php', 'action-scheduler');

	//Hide "MailPoet".
	remove_menu_page('mailpoet-homepage');
	//Hide "MailPoet → Home".
	remove_submenu_page('mailpoet-homepage', 'mailpoet-homepage');
	//Hide "MailPoet → Emails".
	remove_submenu_page('mailpoet-homepage', 'mailpoet-newsletters');
	//Hide "MailPoet → Automations".
	remove_submenu_page('mailpoet-homepage', 'mailpoet-automation');
	//Hide "MailPoet → Forms".
	remove_submenu_page('mailpoet-homepage', 'mailpoet-forms');
	//Hide "MailPoet → Subscribers".
	remove_submenu_page('mailpoet-homepage', 'mailpoet-subscribers');
	//Hide "MailPoet → Lists".
	remove_submenu_page('mailpoet-homepage', 'mailpoet-lists');
	//Hide "MailPoet → Segments".
	remove_submenu_page('mailpoet-homepage', 'mailpoet-segments');
	//Hide "MailPoet → Settings".
	remove_submenu_page('mailpoet-homepage', 'mailpoet-settings');
	//Hide "MailPoet → Help".
	remove_submenu_page('mailpoet-homepage', 'mailpoet-help');
	//Hide "MailPoet → Upgrade".
	remove_submenu_page('mailpoet-homepage', 'mailpoet-upgrade');
}

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

Where do I put this code?