gravityflow_feedback_cancel_workflow

Description

The gravityflow_feedback_cancel_workflow filter allows the user feedback to be modified after canceling the workflow with the cancel link.

Parameters

ParameterTypeDetails
$parametersStringThe feedback to send to the browser.
$entryEntryThe details
$assigneeAssigneeThe assignee object.
$new_statusStringThe new status
$formFormThe current form array.
$stepStepThe current step

Examples

Customize the cancelled feedback message for a specific step

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?