1. Home
  2. Filters
  3. Filter reference: wpforms_disable_all_emails

apply_filters( 'wpforms_disable_all_emails', $disable, $this );

Filter used to disable all form notification emails.


The wpforms_disable_all_emails filter applies to all notification emails within the form submission process. It can be used to prevent form notification emails from being sent site-wide, regardless of settings within the form builder.


(bool) (Required) If true, all notification emails will be disabled (default is false).
(object) (Required) Instance of the WPForms_WP_Emails class, which handles all notification emails sent by WPForms.



More Information

Below is the function in which this filter is run.

 * Email kill switch if needed.
 * @since 1.1.3
 * @return bool
public function is_email_disabled() {
	return (bool) apply_filters( 'wpforms_disable_all_emails', false, $this );
Updated on December 7, 2018

Was this article helpful?