_wp_post_revision_data
- %1$s is private and should not be used in themes or plugins directly.
_wp_post_revision_data ( $post = array(), $autosave = false )
Access:Parameters:- (array|WP_Post) post Optional. A post array or a WP_Post object to be processed for insertion as a post revision. Default empty array.
- (bool) autosave Optional. Is the revision an autosave? Default false.
Returns:- (array) Post array ready to be inserted as a post revision.
Defined at: - Introduced in WordPress: 4.5.0
- Deprecated in WordPress: —
Description
Returns a post array ready to be inserted into the posts table as a post revision.