W3cubDocs

/WordPress

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

Filters the fields displayed in the post revision diff UI.

Parameters

$return

(array[]) Array of revision UI fields. Each item is an array of id, name, and diff.

$compare_from

(WP_Post) The revision post to compare from.

$compare_to

(WP_Post) The revision post to compare to.

Source

File: wp-admin/includes/revision.php

View on Trac

Changelog

Version Description
4.1.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_get_revision_ui_diff