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.


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;
The processed diffed line.
The unprocessed diffed line.
* @param string null The line context. Values are 'added', 'deleted' or 'unchanged'.

Where the hook is called

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.