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



process_text_diff_html › WordPress Filter Hooks

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