gravityflow_workflow_detail_sidebar

The gravityflow_workflow_detail_sidebar action is used to present custom panels in the sidebar between the workflow info and admin panels (assuming the current user has role/permissions to see the admin panel.

Parameters

$form   array                            The form which created this entry.
$entry  array                            The entry currently being displayed.
$step   Gravity_Flow_Step     The current step for this entry
$args    array                           The properties for the page currently being displayed

Examples

Example 1 - A non-functional panel with the same styling as the rest of the sidebar panels displayed by the shortcode

add_action( 'gravityflow_workflow_detail_sidebar', 'sh_gravityflow_custom_sidebar_penl', 10, 4 );
function sh_gravityflow_custom_sidebar_box( $form, $entry, $current_step, $args ) {
    ?>
    <div class="postbox">
        <h3 class="hndle" style="cursor:default;">
            <span><?php esc_html_e( 'Custom Sidebar Panel', 'gravityflow' ); ?></span>
        </h3>

        <div id="submitcomment" class="submitbox">
            <div id="minor-publishing" style="padding:10px;">
                <p>Your panel functionality would go here</p>
            </div>
        </div>
    </div>
    <?php 
}

Placement

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