revision_text_diff_options

SummerySummery

Filters revisions text diff options.

Syntax

apply_filters( 'revision_text_diff_options', array $args, string $field, WP_Post $compare_from, WP_Post $compare_to )

DescriptionDescription

Filters the options passed to wp_text_diff() when viewing a post revision.

ParametersParameters

$args

(array) Associative array of options to pass to wp_text_diff().

  • 'show_split_view'
    (bool) True for split view (two columns), false for un-split view (single column). Default true.

$field

(string) The current revision field.

$compare_from

(WP_Post) The revision post to compare from.

$compare_to

(WP_Post) The revision post to compare to.

SourceSource

File: wp-admin/includes/revision.php

ChangelogChangelog

Changelog
Version Description
4.1.0 Introduced.
Scroll to Top