On this page
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
$argsarray-
Associative array of options to pass to wp_text_diff() .
show_split_viewboolTrue for split view (two columns), false for un-split view (single column). Default true.
More Arguments from wp_text_diff( ... $args )
Associative array of options to pass to WP_Text_Diff_Renderer_Table().
titlestringTitles the diff in a manner compatible with the output. Default empty.title_leftstringChange the HTML to the left of the title.
Default empty.title_rightstringChange the HTML to the right of the title.
Default empty.show_split_viewboolTrue for split view (two columns), false for un-split view (single column). Default true.
$fieldstring-
The current revision field.
$compare_fromWP_Post-
The revision post to compare from.
$compare_toWP_Post-
The revision post to compare to.
Source
File: wp-admin/includes/revision.php. View all references
$args = apply_filters( 'revision_text_diff_options', $args, $field, $compare_from, $compare_to );
Related
Used By
| Used By | Description |
|---|---|
| wp_get_revision_ui_diff() wp-admin/includes/revision.php | Get the revision UI diff. |
Changelog
| Version | Description |
|---|---|
| 4.1.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/revision_text_diff_options