Core Function
View Source on Trac ↗ _wp_post_revision_data()
_wp_post_revision_data( mixed $post = array(), mixed $autosave = false ) Returns a post array ready to be inserted into the posts table as a post revision.
Parameters 1 required
| Name / Type | Description |
|---|---|
| mixed | (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. Required |
| $autosave bool | Optional. Is the revision an autosave? Default false. |
Return Value
(array)
Post array ready to be inserted as a post revision.
Function Information
Since Version
4.5.0
Source File
wp-includes/revision.php
Advertisement