By default, Caldera Forms will use the site’s admin email setting in two situations:
- When the main mailer does not have a valid email set in the setting for the sender email setting.
- When the main a valid email set in the setting for the recipients setting.
This filter, added in Caldera Forms 1.5.8, lets you change who receives the email, when the default fallback email is used.
Where Does This Code Go?
When using WordPress hooks to customize Caldera Forms or other plugins you should not modify the plugin files, or you will lose your changes when you update the plugin. Instead you should create a small plugin to hold the custom code. It's easy, learn how here.
Technically you can add the custom code to your theme's functions.php, but then you will not be able to change your theme and keep these customizations.