Created
February 27, 2020 00:29
-
-
Save zackkatz/ece2e5b7a0ef064c98f4e5ecd2695d66 to your computer and use it in GitHub Desktop.
GravityView Entry Revisions - How to check whether an entry is a revision
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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