wp_get_revision_ui_diff

Advertisement

Summery Summery

Filters the fields displayed in the post revision diff UI.

Syntax Syntax

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

Parameters 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 Source

File: wp-admin/includes/revision.php

Advertisement

Changelog Changelog

Changelog
Version Description
4.1.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.