WordPress at a glance
filter is not described

process_text_diff_html filter-hook . WP 4.1.0

Contextually filters a diffed line.

Filters TextDiff processing of diffed line. By default, diffs are processed with htmlspecialchars. Use this filter to remove or change the processing. Passes a context indicating if the line is added, deleted or unchanged.

Usage

add_filter( 'process_text_diff_html', 'filter_function_name_4141', 10, 3 );
function filter_function_name_4141( $processed_line, $line, $string ){
	// filter...

	return $processed_line;
}
$processed_line(string)
The processed diffed line.
$line(string)
The unprocessed diffed line.
* @param string null The line context. Values are 'added', 'deleted' or 'unchanged'.
$string
-

Where the hook is called

WP_Text_Diff_Renderer_Table::_added()
WP_Text_Diff_Renderer_Table::_deleted()
WP_Text_Diff_Renderer_Table::_context()
wp-includes/class-wp-text-diff-renderer-table.php 174
$line = apply_filters( 'process_text_diff_html', $processed_line, $line, 'added' );
wp-includes/class-wp-text-diff-renderer-table.php 200
$line = apply_filters( 'process_text_diff_html', $processed_line, $line, 'deleted' );
wp-includes/class-wp-text-diff-renderer-table.php 226
$line = apply_filters( 'process_text_diff_html', $processed_line, $line, 'unchanged' );

Where the hook is used (in WP core)

Does not used.