View Categories

fluentform/inserted_new_form

Description #

This action fires after the new form is created. If you want to do a 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 #

  • $insertData (array) Form Initial Array
  • $formId int Form ID

Placement #

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

Source Code #

This action is located in fluentform/app/Services/Form/FormService.php