wp_get_revision_ui_diff WordPress Filter Hook

The wp_get_revision_ui_diff hook allows you to modify the diff output for the revision UI. This can be useful for customizing the display or for adding your own data to the diff.

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.


Top ↑

Source

File: wp-admin/includes/revision.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.