Fluent Form site owner email smartcode

tdrayson

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.

Members content only

Become a snippetclub.com member to gain instant access to this tutorial plus tons more premium content.

Already a member? Log in below.

Login Form

👋🏻 Weekly Tutorial Digest

I send out a weekly newsletter with links to new tutorials written in the last week, you can subscribe below.

Newsletter

🔒I won't send you spam, I promise