Skip to main content

Action: gk/gravityrevisions/entry-revisions/restore/after

Fires after an entry has been restored from a revision.

Restoring removes every gform_post_update_entry action before writing the entry, so a restore does not set off the notifications, feeds and triggers a fresh edit would. Anything holding its own copy of entry data has no other signal that it changed.

Fires only on a successful restore: an identical revision, or an entry that cannot be read, returns before reaching here.

Parameters

NameTypeDescription
$entry_idintEntry that was restored.
$prior_entryarrayEntry as it was before the restore.
$restored_entryarrayEntry as restored. Its id and status are removed before the write, so read the entry for either.
$revision_idintRevision that was restored.

Since

  • TBD: TBD

Source

Defined in class-gv-entry-revisions.php at line 822