WordPress at a glance
filter is not described

revision_text_diff_options filter-hook . WP 4.1.0

Filters revisions text diff options.

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

Usage

add_filter( 'revision_text_diff_options', 'filter_function_name_6819', 10, 4 );
function filter_function_name_6819( $args, $field, $compare_from, $compare_to ){
	// filter...

	return $args;
}
$args(array)

Associative array of options to pass to wp_text_diff().

  • $show_split_view (true/false)
    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.

Where the hook is called

wp_get_revision_ui_diff()
revision_text_diff_options
wp-admin/includes/revision.php 99
$args = apply_filters( 'revision_text_diff_options', $args, $field, $compare_from, $compare_to );

Where the hook is used (in WP core)

Does not used.