Thanks John – disabling ACF showed nothing, which then helped remind me that I’d coded a special plugin for this site, too, and lo and behold the custom function was in the plugin. I don’t normally use plugins, but this site is extra complex.
Resolved, and may it possibly be helpful to someone else later.