apply_filters( ‘wp_get_revision_ui_diff’, array[] $return, WP_Post $compare_from, WP_Post $compare_to )

In this article

Filters the fields displayed in the post revision diff UI.

Parameters

$returnarray[]
Array of revision UI fields. Each item is an array of id, name, and diff.
$compare_fromWP_Post
The revision post to compare from.
$compare_toWP_Post
The revision post to compare to.

Source

return apply_filters( 'wp_get_revision_ui_diff', $return, $compare_from, $compare_to );

Changelog

VersionDescription
4.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.