Filters the array of revisions used on the revisions screen.
Parameters
$revisions_data
array- The bootstrapped data for the revisions screen.
id
intRevision ID.title
stringTitle for the revision’s parent WP_Post object.author
intRevision post author ID.date
stringDate the revision was modified.dateShort
stringShort-form version of the date the revision was modified.timeAgo
stringGMT-aware amount of time ago the revision was modified.autosave
boolWhether the revision is an autosave.current
boolWhether the revision is both not an autosave and the post modified date matches the revision modified date (GMT-aware).restoreUrl
bool|falseURL if the revision can be restored, false otherwise.
$revision
WP_Post- The revision’s WP_Post object.
$post
WP_Post- The revision’s parent WP_Post object.
Source
$revisions[ $revision->ID ] = apply_filters( 'wp_prepare_revision_for_js', $revisions_data, $revision, $post );
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.