apply_filters( 'wp_prepare_revision_for_js', array $revisions_data , WP_Post $revision , WP_Post $post )
Filters the array of revisions used on the revisions screen.
Parameters
- $revisions_data
-
The bootstrapped data for the revisions screen.<br>
- 'id'
(int) Revision ID.<br> - 'title'
(string) Title for the revision's parent WP_Post object.<br> - 'author'
(int) Revision post author ID.<br> - 'date'
(string) Date the revision was modified.<br> - 'dateShort'
(string) Short-form version of the date the revision was modified.<br> - 'timeAgo'
(string) GMT-aware amount of time ago the revision was modified.<br> - 'autosave'
(bool) Whether the revision is an autosave.<br> - 'current'
(bool) Whether the revision is both not an autosave and the post modified date matches the revision modified date (GMT-aware).<br> - 'restoreUrl'
(bool|false) URL if the revision can be restored, false otherwise.<br>
- 'id'
- $revision
-
The revision's WP_Post object.
- $post
-
The revision's parent WP_Post object.
Source
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |