I was building a site for a client that was going to be duplicated and used multiple times for different people. So I decided to make use of ACF option pages to have 1 source of truth for things like name, email, telephone, company name, address etc.
This made it easy to duplicate the site and change the name and for it to be updated everywhere including privacy policies etc.
I am using Fluent Forms on this project for data capture/lead generation and I was thinking of a way that I could leverage the email in the options page so that form submissions would be sent to the correct email.
The solution I came up with is making use of the smartcodes.
Code
Add the code below to functions.php
or code snippet plugin.