Description

Filter whether or not to send the Notification email.


Passing a falsey value to the filter will effectively short-circut send the Notification email.


Parameters

$setting

(bool) (required) The setting to return

Default: false


$form_id

(int) (optional) The form ID

Default: the form ID


$entry_id

(int) (optional) The entry ID

Default: the entry ID


Examples

Skip Notification email for form ID 114:

  

add_filter( 'vfbp_skip_notification', 'filter_vfbp_skip_notification', 10, 3 );

function filter_vfbp_skip_notification( $setting, $form_id, $entry_id ){    
	if ( 114 == $form_id )    
		return true;
}