gravityflow_step_form

The gravityflow_step_form filter allows the form to be modified before a step using it is processed. The same filter syntax is applied for the current step type through gravityflow_{$this->get_type()}_form (i.e. gravityflow_approval_form, gravityflow_userinput_form, etc).

Parameters

Parameter Type Definition
$form
Array The current form to be processed.
$entry Array The current entry to be processed.
$step Gravity_Flow_Step
The current step being processed.

Examples

Example

add_filter( 'gravityflow_step_form', 'jo_step_form_customization', 10, 3 );
function jo_step_form_customization( $form, $entry, $step ) {
   //Customize the form

   return $form;
}

Placement

This code should be placed in the functions.php file of your active theme or in a custom functions plugin.