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.
The form settings include an option to show the form with the success message. This setting applies when editing an entry as well. If you would like the form to show differently after edit than it does after submit, use this hook.
Formidable Forms is the best WordPress Form Builder plugin. Get it for free!
Usage
add_filter('frm_show_form_after_edit', 'frm_hide_after_edit', 10, 2); function frm_hide_after_edit($show, $form)
Parameters
- $show (boolean) - True or false whether to show the form or not
- $form (object)
Examples
Do not show the form after editing an entry
add_filter('frm_show_form_after_edit', 'frm_hide_after_edit', 10, 2);
function frm_hide_after_edit($show, $form){
if ( $form->id == 5 ) { //change 5 to the id of your form
$show = false;
}
return $show;
}