Palmitoyltransferase that catalyzes the addition of palmitate onto various protein substrates (PubMed:18817523, PubMed:23034182). Has no stringent fatty acid selectivity and in addition to palmitate can also transfer onto target proteins myristate from tetradecanoyl-CoA and stearate from octadecanoyl-CoA (By similarity). Palmitoylates IGF2R and SORT1, promoting their partitioning to an endosomal membrane subdomain where they can interact with the retromer cargo-selective complex (PubMed:18817523). Thereby, regulates retrograde transport from endosomes to the Golgi apparatus of these lysosomal sorting receptors and plays a role in trafficking of lysosomal proteins (PubMed:18817523). In the nervous system, catalyzes the palmitoylation of DLG4/PSD95 and regulates its synaptic clustering and function in synaptogenesis (By similarity). Could be involved in the differentiation of dopaminergic neurons and the development of the diencephalon (By similarity). Could also catalyze the palmitoylation of GAP43 (By similarity). Could also palmitoylate DNAJC5 and regulate its localization to the Golgi membrane (By similarity). Could also palmitoylate FYN as shown in vitro (PubMed:19956733). May palmitoylate CALHM3 subunit of gustatory voltage-gated ion channels and modulate channel gating and kinetics. {ECO:0000250|UniProtKB:F1QXD3, ECO:0000250|UniProtKB:Q8BGJ0, ECO:0000269|PubMed:18817523, ECO:0000269|PubMed:19956733, ECO:0000269|PubMed:23034182}. This is the function of ZDHHC15 (zDHHC palmitoyltransferase 15, ENSG00000102383).