gravityflow_approval_assignee_status_type

The gravityflow_approval_assignee_status_type filter allows the status types of the approval step process to be modified. Used in conjunction with gravityflow_approval_assignee_status_feedback and gravityflow_above_approval_buttons it can enable additional button options (like revert) for processing custom routing of an approval step.

Example #1: Adding a custom status type

add_filter( 'gravityflow_approval_assignee_status_types', 'approval_review_fields_statuses' , 10, 5 );
function approval_review_fields_statuses( $potential_statuses, $assignee, $new_status, $form, $current_step ) {
	$potential_statuses[] = 'review';
	return $potential_statuses;
}

Placement

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