Overview
Would you like to disable the background processing WPForms uses for sending email notifications? In this tutorial, we’ll walk you through exactly how to achieve this!
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.
Using a small PHP filter, you can easily disable this option.
Setup
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.
Related
Filter Reference: wpforms_tasks_entry_emails_trigger_send_same_process