A WordPress-centric search engine for devs and theme authors



process_text_diff_html ›

Since4.1.0
Deprecatedn/a
apply_filters( 'process_text_diff_html', $processed_line, $line, 'added' )
Parameters: (3)
  • (String) $processed_line The processed diffed line.
    Required: Yes
  • (String) $line The unprocessed diffed line.
    Required: Yes
  • (string) null The line context. Values are 'added', 'deleted' or 'unchanged'.
    Required: Yes
Defined at:
Codex:

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.





Source

$line = apply_filters( 'process_text_diff_html', $processed_line, $line, 'added' );