Core Function
View Source on Trac ↗ _wp_post_revision_fields()
_wp_post_revision_fields( mixed $post = array(), mixed $deprecated = false ) Determines which fields of posts are to be saved in revisions.
Parameters 1 required
| Name / Type | Description |
|---|---|
| mixed | (array | WP_Post) $post Optional. A post array or a WP_Post object being processed for insertion as a post revision. Default empty array. Required |
| $deprecated bool | Not used. |
Return Value
(string[])
Array of fields that can be versioned.
Function Information
Since Version
2.6.0
Source File
wp-includes/revision.php
Advertisement