Description #
This action fires right before the form is rendered. If you want to do a certain task after a form rendering then you can catch this action hook and do your staff. For example, checking for some conditions on whether to show the form or not.
/*
* Source Action
*/
do_action('fluentform/before_form_render', $form);
Usage #
The following would apply to all forms:
add_action('fluentform/before_form_render', 'your_custom_function', 10, 1);
function your_custom_function( $form )
{
// Do your stuffs here
}
Parameters #
- $form (Object) The $form Object
Placement #
This code should be placed in the functions.php file of your active theme. Also, you can use php snippet plugins.
Source Code #
This hook is located in fluentform/app/Services/FormBuilder/FormBuilder.php.