Contact form function should be in functions.php or in a plugin file?
This depends a lot on the context. Normally, I would say that the form should be in a plugin. The rule of thumbs is that if it’s a functionality that could still be needed when the theme is deactivated, then it should go into a plugin. Now for your specific case, if using the customizer, … Read more