fluentform_inserted_new_form

Description #

This action fires after the a new form is created. If you want to do certain task after a form creation then you can catch this action hook and do your staff.

/*
* Source Action
*/
do_action('fluentform_inserted_new_form', $formId, $insertData);

Usage #

The following would apply to all forms:

add_action('fluentform_inserted_new_form', 'your_custom_function', 10, 2);

function your_custom_function( $formId, $insertData)
{
   // DO your stuffs here
}

Parameters #

  • $formId int Form ID

Placement #

This code should be placed in the functions.php file of your active theme.

Source Code #

This filter is located in FluentForm\App\Modules\Form -> onSubmit() in app/Modules/Form/Form.php

Powered by BetterDocs