gravityflow_assignee_status_workflow_detail
The gravityflow_assignee_status_workflow_detail filter allows the assignee status label to be modified before being rendered. Currently only supported for the Approval Step.
Example usage:
add_filter( 'gravityflow_assignee_status_workflow_detail', 'sh_filter_gravityflow_assignee_status_workflow_detail', 10, 3 ); function sh_filter_gravityflow_assignee_status_workflow_detail( $assignee_status_label, $assignee, $current_step ) { switch ( $assignee->get_id() ) { case 1: $assignee_status_label = 'Mr Admin: ' . $assignee->get_status(); break; case 2: $assignee_status_label = 'Mrs Admin: ' . $assignee->get_status(); break; default: $assignee_status_label = 'Mrs Admin: ' . $assignee->get_status(); } return $assignee_status_label; }
Placement
This code should be placed in the functions.php file of your active theme.