Skip to main content

Filter: gravityview/entry-revisions/restore/add-new

Should a new revision be created with the prior state, when creating a revision?

Parameters

NameTypeDescription
$add_newboolShould a new revision be created based on the entry before the restoration? [Default: True]
$prior_entryarrayEntry before restoring values
$new_entryarrayCurrent entry, after restoring values

Since

Source

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