Summery Summery

Filters revisions text diff options.

Syntax Syntax

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

Description Description

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

Parameters Parameters


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


(string) The current revision field.


(WP_Post) The revision post to compare from.


(WP_Post) The revision post to compare to.

Source Source

File: wp-admin/includes/revision.php


Changelog Changelog

Version Description
4.1.0 Introduced.


Leave a Reply

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

What are you looking for?