Uma área de pesquisa sobre o WordPress para devs e autores do tema

process_text_diff_html ›

apply_filters( 'process_text_diff_html', $processed_line, $line, 'added' )
Parâmetros: (3)
  • (String) $processed_line The processed diffed line.
    Required: Yes
  • (String) $line The unprocessed diffed line.
    Required: Yes
  • (string) null The line context. Values are 'added', 'deleted' or 'unchanged'.
    Required: Yes
Definido em:

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.


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