I am trying to use the GravityView hook ‘gravityview/edit_entry/cancel_link’ to change where the “cancel” button takes someone. The hook is documented here: GravityView: form-buttons.php File Reference
What I want to change is the $back_link but I can’t quite figure out how to do it. Here’s what I have so far but this just crashes the form:
So after some trail and error I figured out the solution and figured I’d post it here in case anyone else is looking for a solution, since there seems to be very little in the way of examples out there on how to use this system. It’s actually a two step process: