Can we reveal the core-chemical composition of ultra-massive white dwarfs through their magnetic fields?