wpseek.com
A WordPress-centric search engine for devs and theme authors



process_text_diff_html › WordPress Filter Hooks

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) $context 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' );