Filters the array of revisions used on the revisions screen.
Parameters
$revisions_dataarray- The bootstrapped data for the revisions screen.
idintRevision ID.titlestringTitle for the revision’s parent WP_Post object.authorintRevision post author ID.datestringDate the revision was modified.dateShortstringShort-form version of the date the revision was modified.timeAgostringGMT-aware amount of time ago the revision was modified.autosaveboolWhether the revision is an autosave.currentboolWhether the revision is both not an autosave and the post modified date matches the revision modified date (GMT-aware).restoreUrlbool|falseURL if the revision can be restored, false otherwise.
$revisionWP_Post- The revision’s WP_Post object.
$postWP_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.