The gravityflow_pre_cancel_workflow action hook fires just before a workflow is cancelled.

Example usage:

add_action( 'gravityflow_pre_cancel_workflow', 'sh_gravityflow_pre_cancel_workflow', 10, 3 );

 * @param array $entry
 * @param array $form
 * @param Gravity_Flow_Step $step
function sh_gravityflow_pre_cancel_workflow( $entry, $form, $step ) {
	// Do something before the workflow for $entry is cancelled while on $step


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

Added in Gravity Flow v1.9.2