revision_text_diff_options WordPress Filter Hook

This hook allows you to specify the textdiff options that will be used when revisions are compared. The options are passed to the textdiff() function, which is part of the WordPress core.

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

Filters revisions text diff options.


Description

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


Top ↑

Parameters

$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.


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.