gravityflow_feedback_approval

Use this filter to change the text of the  feedback message on the approval  step.

Parameter Type Definition
$feedback String The feedback to send to the browser.
$entry Array The current entry array.
$assignee Gravity_Flow_Assignee The assignee object.
$new_status String The new status
$form Array The current form array.
$step Gravity_Flow_Step The current step

Example 1

The  following example will change the message to "Thank you very much!" specifically for step with ID 12.

add_filter( 'gravityflow_feedback_approval', 'sh_gravityflow_feedback_approval', 10, 6 );  
function sh_gravityflow_feedback_approval( $feedback,  $entry, $assignee, $new_status, $form, $step ) { 
    if ( $step->get_id() == '12' ) {$feedback = 'Thank you very much!';}
	return $feedback;
}

NOTE: This filter will only run when the approval buttons are clicked on the workflow detail page. If you want to modify the feedback for the one-click approval links, you need to use the gravityflow_feedback_approval_token filter which takes the same arguments.

Placement

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