WordPress开发者和主题制作者的搜索引擎



process_text_diff_html ›

Since4.1.0
已弃用n/a
apply_filters( 'process_text_diff_html', $processed_line, $line, 'added' )
参数: (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
定义在:
文档:

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