Skip to content

Instantly share code, notes, and snippets.

@zackkatz
Created February 27, 2020 00:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save zackkatz/ece2e5b7a0ef064c98f4e5ecd2695d66 to your computer and use it in GitHub Desktop.
Save zackkatz/ece2e5b7a0ef064c98f4e5ecd2695d66 to your computer and use it in GitHub Desktop.
GravityView Entry Revisions - How to check whether an entry is a revision
<?php
$entry = GFAPI::get_entry( 1234 ); // Replace '1234' with your own Entry ID
if( 'gv-revision' === $entry['status'] ) {
// This entry is actually a revision!
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment