Snippets: Change the Contact Form Element “to” Adress

By default the Total theme contact form element uses the site admin email address for the "to" email address and because of how the form works (as a shortcode without it's own custom dashboard) having a setting to enter a custom email would expose the email in the front-end which could result in your address getting spammed or potentially pose a security risk if the email is associated with an admin account on the site.

So if you want to change the to email you will want to do so with a little code either added to your child theme functions.php file or via the Code Snippets plugin. See example below:

add_filter( 'vcex_contact_form_mail_to_address', function() {
   return '[email protected]';
} );

Snippet Type: PHP

All PHP snippets should be added via a child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)