Change the Default Email for Weekly Email Summaries

Overview

Would you like to change the default email address for the weekly summary report that is sent out from WPForms? By default, these weekly emails are sent to your WordPress site’s administrator email account listed in your WordPress Admin under Settings » General tab. With a small PHP snippet that we’ll show you in this tutorial, you can easily change this email address to any email you’d like.

Setup

WPForms sends out a weekly summary report showing the number of submissions for each form on your site without the need to log into your WordPress dashboard.

An example of the weekly email summary

In the example below, we’re going to change the email address for the weekly summary to ‘yourname@email.com’.

Just copy and paste this code into your site and remember to change the yourname@email.com to update the email address.

/**
 * Change "Send To" email for the weekly email summary report.
 *
 * @link   https://wpforms.com/developers/change-the-default-email-for-the-weekly-email-summary/
 *
 * @return string
 */

function wpf_dev_emails_mailer_to_email_summary() {

    return 'yourname@email.com';
}
add_filter( 'wpforms_emails_summaries_cron_to_email', 'wpf_dev_emails_mailer_to_email_summary' );

And that’s it! Now the email address for the weekly summary report has been changed for all reports. Would you like to learn how to disable the email suggestion on your form? Try out our article on How to Disable the Email Suggestion on the Email Form Field.

Filter Reference: wpforms_emails_summaries_cron_to_email