Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



process_text_diff_html ›

Od4.1.0
Przestarzałyn/a
apply_filters( 'process_text_diff_html', $processed_line, $line, 'added' )
Parametry: (3)
  • (String) $processed_line The processed diffed line.
    Wymagane: Tak
  • (String) $line The unprocessed diffed line.
    Wymagane: Tak
  • (string) null The line context. Values are 'added', 'deleted' or 'unchanged'.
    Wymagane: Tak
Zdefiniowane na:
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.





Źródło

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