wp_is_post_autosave
wp_is_post_autosave ( $post )
Parameters:- (int|WP_Post) post Post ID or post object.
Returns:- (int|false) ID of autosave'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 an autosave.