How to Hide the "WP Data Sync" Admin Menu

function plt_hide_wp_data_sync_menus() {
	//Hide the "Settings → WP Data Sync" menu.
	remove_submenu_page('options-general.php', 'wp-data-sync');
}

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

Where do I put this code?