Heads up!
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
Use this filter to disable the email action added by default when a new form is created.
Usage
add_filter( 'frm_create_default_email_action', '__return_false' );
Parameters
- None
Examples
Disable the default send email action for a specific form
Use this code example to turn off the default send email action for a specific form.
add_filter( 'frm_create_default_email_action', function ( $should_create, $form ) {
return $should_create;
if ( 10 == $form->id ) { //Replace 10 with the form ID
return false;
}
return $should_create;
}, 10, 2 );