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 hook to filter the run success action args.
Formidable Forms is the best WordPress Form Builder plugin. Get it for free!
Usage
add_filter('frm_get_run_success_action_args', 'frm_show_form_success_action', 10, 3);
Parameters
- $new_args (array): The new args.
- $args (array): The old args. See FrmFormsController::run_success_action() for more information.
- $action (object): On Submit action object.
Examples
Force show form for message action
Use this code example to force show form for message action.
add_filter('frm_get_run_success_action_args', 'show_form_success_action_args', 10, 3);
function show_form_success_action_args( $new_args, $args, $action ) {
if ( 'message' === $new_args['conf_method'] ) {
$new_args['form']->options['show_form'] = 1;
}
return $new_args;
}