gravityflow_entry_detail_content_after

The gravityflow_entry_detail_content_after action allows custom code/content to be displayed after the primary form elements on the entry details page.

Parameters

Parameter Type Definition
$entry Array The current entry array.
$form Array The current form array.

Examples

Example 1 - Display Additional Support

Perhaps your team has a style/tone guide that all communications to customers should follow or a brand guide for icons/materials which you want to be easily available to users but not a part of the instructions above the entry details page.

add_action( 'gravityflow_entry_detail_content_after', 'jo_materials_after_entry_details', 10, 2 );
function jo_materials_after_entry_details( $form, $entry ) {
     $api = new Gravity_Flow_API( $form['id'] );
     $step = $api->get_current_step( $entry );
     //Adjust the array entries to match the Step ID(s) you want the materials to show up on
     if ( in_array( $step->get_id(), array( '10', '15', '22' ) ) {    
          echo '<h3>Support Materials</h3>';
          echo '<ul><li><a href="https://gravityflow.io">Example Link</a></li><li><a href="https://gravityflow.io">Example Link</a></li></ul>';
     }
}

Placement

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