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.


add_filter( 'revision_text_diff_options', 'filter_function_name_8069', 10, 4 );
function filter_function_name_8069( $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.

Список изменений

С версии 4.1.0 Введена.

Где вызывается хук

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

Где используется хук в ядре WP

Использование не найдено.