wpseek.com
A WordPress-centric search engine for devs and theme authors



revision_text_diff_options › WordPress Filter Hooks

Since4.1.0
Deprecatedn/a
apply_filters( 'revision_text_diff_options', $args, $field, $compare_from, $compare_to )
Parameters: (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
Defined at:
Codex:

Filters revisions text diff options.

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





Source

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