Since the WPForms version 1.5.9, asynchronous tasks are used to send email notifications. Asynchronous tasks, also known as background processing, are where data can be transmitted intermittently rather than in a steady stream. These tasks can delay notifications on sites that have low traffic. If you would like to disable these tasks, this tutorial will walk you through the code snippet needed to turn this functionality off.
To disable these tasks you’ll need to copy this snippet to your site.
If you’re not sure how to add snippets to your site, please review this tutorial.
/** * Disable form notifications sending asynchronously. * * @link https://wpforms.com/developers/how-to-disable-the-background-processing-for-sending-email-notifications/ */ add_filter( 'wpforms_tasks_entry_emails_trigger_send_same_process', '__return_true' );
And that’s it! You’ve now disabled the background processing tasks. Would you like to show all form fields (including empty ones) inside your email notifications? Take a look at our tutorial on How to Show Empty Form Fields in Email Notifications.
Filter Reference: wpforms_tasks_entry_emails_trigger_send_same_process