It's clearer if you expand it to ὅ τι μὴ καὶ οἱ ἄλλοι πάντες ἔμαθον ἢ ἤκουσαν. So "if someone says that they have learned or heard something from me in private, (except for what/unless) all the others too have learned or heard".