How to Hide WP Umbrella Admin Menus

function plt_hide_wp_health_menus() {
	//Hide the "Tools → Scheduled Actions" menu.
	remove_submenu_page('tools.php', 'action-scheduler');
	//Hide the "Settings → WP Umbrella" menu.
	remove_submenu_page('options-general.php', 'wp-umbrella-settings');
}

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

Where do I put this code?