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



process_text_diff_html › Filtr WordPress Hooks

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