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



revision_text_diff_options ›

Since4.1.0
已弃用n/a
apply_filters( 'revision_text_diff_options', $args, $field, $compare_from, $compare_to )
参数: (4)
  • (array) $args { Associative array of options to pass to wp_text_diff(). @type bool $show_split_view True for split view (two columns), false for un-split view (single column). Default true. }
    Required: Yes
  • (string) $field The current revision field.
    Required: Yes
  • (WP_Post) $compare_from The revision post to compare from.
    Required: Yes
  • (WP_Post) $compare_to The revision post to compare to.
    Required: Yes
定义在:
文档:

Filters revisions text diff options.

Filters the options passed to wp_text_diff() when viewing a post revision.





源码

$args = apply_filters( 'revision_text_diff_options', $args, $field, $compare_from, $compare_to );