Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



process_text_diff_html ›

Seit4.1.0
Veraltetn/v
apply_filters( 'process_text_diff_html', $processed_line, $line, 'added' )
Parameter: (3)
  • (String) $processed_line The processed diffed line.
    Erforderlich: Ja
  • (String) $line The unprocessed diffed line.
    Erforderlich: Ja
  • (string) null The line context. Values are 'added', 'deleted' or 'unchanged'.
    Erforderlich: Ja
Definiert in:
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.





Quellcode

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