How to Hide Ultimate Appointment Scheduling Admin Menus

function plt_hide_ultimate_appointment_scheduling_menus() {
	//Hide "Appointments".
	remove_menu_page('EWD-UASP-options');
	//Hide "Appointments → Appointments".
	remove_submenu_page('EWD-UASP-options', 'EWD-UASP-options');
	//Hide "Appointments → Locations".
	remove_submenu_page('EWD-UASP-options', 'EWD-UASP-options&DisplayPage=Locations');
	//Hide "Appointments → Services".
	remove_submenu_page('EWD-UASP-options', 'EWD-UASP-options&DisplayPage=Services');
	//Hide "Appointments → Providers".
	remove_submenu_page('EWD-UASP-options', 'EWD-UASP-options&DisplayPage=ServiceProviders');
	//Hide "Appointments → Exceptions".
	remove_submenu_page('EWD-UASP-options', 'EWD-UASP-options&DisplayPage=Exceptions');
	//Hide "Appointments → Options".
	remove_submenu_page('EWD-UASP-options', 'EWD-UASP-options&DisplayPage=Settings');
}

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

Where do I put this code?