apply_filters( 'revision_text_diff_options', array $args , string $field , WP_Post $compare_from , WP_Post $compare_to )
Filters revisions text diff options.
Description
Filters the options passed to wp_text_diff() when viewing a post revision.
Parameters
- $args
-
Associative array of options to pass to wp_text_diff().
- 'show_split_view'
(bool) True for split view (two columns), false for un-split view (single column). Default true.
- 'show_split_view'
- $field
-
The current revision field.
- $compare_from
-
The revision post to compare from.
- $compare_to
-
The revision post to compare to.
Source
Changelog
Version | Description |
---|---|
WP-4.1.0 | Introduced. |