Skip to content

Instantly share code, notes, and snippets.

View mosmartin's full-sized avatar
:octocat:
...typing

Martin Macharia mosmartin

:octocat:
...typing
View GitHub Profile
@mosmartin
mosmartin / gravityview-trigger-gform_after_submission-form-12.php
Created March 1, 2019 11:13 — forked from zackkatz/gravityview-trigger-gform_after_submission-form-12.php
GravityView - Trigger the `gform_after_submission` action when an entry is edited, but ONLY for Form #12.
<?php
/**
* GravityView doesn't trigger the `gform_after_submission` action when editing entries. This does that,
* but ONLY FOR FORM #12.
*
* @param array $form
* @param int $entry_id ID of the entry being updated
* @param GravityView_Edit_Entry_Render $object
*