gravityflow_above_approval_buttons

The gravityflow_above_approval_buttons action allows custom buttons or information to be presented to the assignee directly above the approve/revert/reject buttons on the entry details page.

Example #1: Adding a custom button

add_action( 'gravityflow_above_approval_buttons', 'approval_review_fields_button' , 10, 2 );
function approval_review_fields_button( $current_step, $form ) {
	if ( $current_step->get_type() == 'approval' ) :
		?>
		<div class="gravityflow-action-buttons">
			<button name="gravityflow_approval_new_status_step_<?php echo $current_step->get_id(); ?>" value="review" type="submit" class="button" style="min-width: 245px; margin-bottom: 3px;">
			<?php
				$review_label = esc_html__( 'Review', 'gravityflow' );
				$review_icon = '<i class="fa fa-pencil" style="color: blue;"></i>';
				echo $review_icon . ' ' . $review_label;
			?>
			</button>
		</div>
		<?php
	endif;
}

In order for this button to change the entry status from pending, you would also need to make customizations to gravityflow_approval_assignee_status_type to define the new status (review) and gravityflow_approval_assignee_status_feedback for how it would process that status.

Placement

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