Description
The gravityflow_feedback_cancel_workflow filter allows the user feedback to be modified after canceling the workflow with the cancel link.
Parameters
| Parameter | Type | Details |
|---|---|---|
| $parameters | String | The feedback to send to the browser. |
| $entry | Entry | The details |
| $assignee | Assignee | The assignee object. |
| $new_status | String | The new status |
| $form | Form | The current form array. |
| $step | Step | The current step |
Examples
Customize the cancelled feedback message for a specific step
1 2 3 4 5 6 7 | add_filter( 'gravityflow_feedback_cancel_workflow', 'sh_gravityflow_feedback_cancel_workflow', 10, 4 ); function sh_gravityflow_feedback_cancel_workflow($feedback, $entry, $form, $step) { if( $step->get_id() == '42' ) { return 'The delivery cycle has been cancelled'; } return $feedback; } |
Placement
This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.
See also the PHP section in this article: Where Do I Put This Code?