How to Hide the "DashboardBuilder" Admin Menu

function plt_hide_dashboard_builder_menus() {
	//Hide the "Settings → DashboardBuilder" menu.
	remove_submenu_page('options-general.php', 'DashboardBuilder');
}

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

Where do I put this code?