Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



revision_text_diff_options ›

Seit4.1.0
Veraltetn/v
apply_filters( 'revision_text_diff_options', $args, $field, $compare_from, $compare_to )
Parameter: (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. }
    Erforderlich: Ja
  • (string) $field The current revision field.
    Erforderlich: Ja
  • (WP_Post) $compare_from The revision post to compare from.
    Erforderlich: Ja
  • (WP_Post) $compare_to The revision post to compare to.
    Erforderlich: Ja
Definiert in:
Codex:

Filters revisions text diff options.

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





Quellcode

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