Filters the array of revisions used on the revisions screen.
Parameters of davo_prepare_revision_diff_data_for_js
Parameter
Type
Description
$revisions_data
array
{ The bootstrapped data for the revisions screen. @type int $id Revision ID. @type string $title Title for the revision's parent WP_Post object. @type int $author Revision post author ID. @type string $date Date the revision was modified. @type string $dateShort Short-form version of the date the revision was modified. @type string $timeAgo GMT-aware amount of time ago the revision was modified. @type bool $autosave Whether the revision is an autosave. @type bool $current Whether the revision is both not an autosave and the post modified date matches the revision modified date (GMT-aware). @type bool $canRestore Whether revision can be restored or not. }
Filters the array of revisions used on the revisions screen.
Parameters of davo_prepare_revision_for_js
Parameter
Type
Description
$revisions_data
array
{ The bootstrapped data for the revisions screen. @type int $id Revision ID. @type string $title Title for the revision's parent WP_Post object. @type int $author Revision post author ID. @type string $date Date the revision was modified. @type string $dateShort Short-form version of the date the revision was modified. @type string $timeAgo GMT-aware amount of time ago the revision was modified. @type bool $autosave Whether the revision is an autosave. @type bool $current Whether the revision is both not an autosave and the post modified date matches the revision modified date (GMT-aware). @type bool $canRestore Whether revision can be restored or not. }
Note. Generated from the plugin source. Descriptions and parameters are the ones written in the code. The starter code uses the parameter names from those comments, or generic names where there are none, so check them against your use.