Filters the array of revisions used on the revisions screen.
$revisions_dataarray
id inttitle stringauthor intdate stringdateShort stringtimeAgo stringautosave boolcurrent boolrestoreUrl bool|false$revisionWP_Post
$postWP_Post
$revisions[ $revision->ID ] = apply_filters( 'wp_prepare_revision_for_js', $revisions_data, $revision, $post );
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_prepare_revision_for_js