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.


$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


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_box', 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>

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


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