How to Disable the Background Processing for Sending Email Notifications

Are you looking to disable the background processing WPForms uses for sending email notifications? In this comprehensive tutorial, we’ll guide you through the process step by step.
Since WPForms version 1.5.9, asynchronous tasks have been implemented to handle email notification sending. Asynchronous tasks, also known as background processing, allow data to be transmitted intermittently rather than in a steady stream. However, these tasks can sometimes cause delays in email notifications, particularly on sites with low traffic.

Fortunately, disabling this feature is straightforward with a simple PHP filter.

Disable the background processing

To disable these asynchronous tasks, you’ll need to add the following PHP snippet to your site. If you’re unsure how to add snippets, refer to our tutorial on adding custom PHP or JavaScript for WPForms.

/**
 * 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! With this snippet, you’ve successfully disabled the background processing tasks for sending email notifications. Looking to customize your email notifications further? Check out our tutorial on How to Show Empty Form Fields in Email Notifications.

Reference Filter

wpforms_tasks_entry_emails_trigger_send_same_process