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_5301', 10, 3 );
function filter_function_name_5301( $processed_line, $line, $string ){
	// filter...

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

Changelog

Since 4.1.0 Introduced.

Where the hook is called

WP_Text_Diff_Renderer_Table::_added()
process_text_diff_html
WP_Text_Diff_Renderer_Table::_deleted()
process_text_diff_html
WP_Text_Diff_Renderer_Table::_context()
process_text_diff_html
wp-includes/class-wp-text-diff-renderer-table.php 175
$line = apply_filters( 'process_text_diff_html', $processed_line, $line, 'added' );
wp-includes/class-wp-text-diff-renderer-table.php 201
$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)

Usage not found!