wp_is_post_revision
wp_is_post_revision ( $post )
Parameters:- (int|WP_Post) post Post ID or post object.
Returns:- (int|false) ID of revision's parent on success, false if not a revision.
Defined at: - Introduced in WordPress: 2.6.0
- Deprecated in WordPress: —
Description
Determines if the specified post is a revision.