Palmitoyltransferase that could catalyze the addition of palmitate onto various protein substrates and be involved in a variety of cellular processes (Probable). Palmitoyltransferase that mediates palmitoylation of KCNMA1, regulating localization of KCNMA1 to the plasma membrane. May be involved in NOS1 regulation and targeting to the synaptic membrane. {ECO:0000269|PubMed:22399288, ECO:0000305|PubMed:22399288}. This is the function of ZDHHC23 (zDHHC palmitoyltransferase 23, ENSG00000184307).