_wp_put_post_revision
- %1$s is private and should not be used in themes or plugins directly.
_wp_put_post_revision ( $post = null, $autosave = false )
Access:Parameters:- (int|WP_Post|array|null) post Post ID, post object OR post array.
- (bool) autosave Optional. Whether the revision is an autosave or not. Default false.
Returns:- (int|WP_Error) WP_Error or 0 if error, new revision ID if success.
Defined at: - Introduced in WordPress: 2.6.0
- Deprecated in WordPress: —
Description
Inserts post data into the posts table as a post revision.