WordPress at Your Fingertips
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.


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

	return $args;

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
The current revision field.
The revision post to compare from.
The revision post to compare to.


Since 4.1.0 Introduced.

Where the hook is called

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

Where in WP core the hook is used WordPress

Usage not found.