How to Hide Elastic Email Subscribe Form Admin Menus

function plt_hide_elastic_email_subscribe_form_menus() {
	//Hide "Elastic Email Subscribe".
	remove_menu_page('elasticemail-settings');
	//Hide "Elastic Email Subscribe → Elastic Email Subscribe".
	remove_submenu_page('elasticemail-settings', 'elasticemail-settings');
	//Hide "Elastic Email Subscribe → Settings".
	remove_submenu_page('elasticemail-settings', 'elasticemail-widget-settings');
	//Hide "Elastic Email Subscribe → Reports".
	remove_submenu_page('elasticemail-settings', 'elastic-report');
}

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

Where do I put this code?