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 confirmation action added by default when a new form is created.
Usage
add_filter( 'frm_create_default_on_submit_action', '__return_false' );
Parameters
- None
Examples
Disable the default confirmation action for a specific form
Use this code example to turn off the default confirmation action for a specific form.
add_filter( 'frm_create_default_on_submit_action', function ( $should_create, $form ) {
if ( 10 == $form->id ) { //Replace 10 with your form ID
return false;
}
return $should_create;
}, 10, 2 );