Description #
This action runs every time an input item is rendered. If you need to do anything in the background you can use this action. $item is the key of the component that is being rendered.
/*
* Source Action
*/
do_action('fluentform/render_item_'.$item['element'], $item, $form);
Usage #
add_action('fluentform/render_item_submit_button', 'custom_function', 10, 2);
function custom_function($item, $form)
{
// Do your stuff here
}
Parameters #
- $item (array) Input Item
- $form (object) Form Object
Source Code #
This hook is located in fluentform/app/Modules/Component/Component.php