Enables magnesium ion transmembrane transporter activity and palmitoyltransferase activity. Predicted to be involved in protein palmitoylation. Located in Golgi membrane and Golgi-associated vesicle membrane. Is expressed in several structures, including early conceptus; esophagus epithelium; genitourinary system; molar; and sensory organ. Used to study Huntington's disease. Orthologous to human ZDHHC13 (zinc finger DHHC-type palmitoyltransferase 13). [provided by Alliance of Genome Resources, Apr 2022]