Filters revisions text diff options.
Description
Filters the options passed to wp_text_diff() when viewing a post revision.
Parameters
$args
array- Associative array of options to pass to wp_text_diff() .
show_split_view
boolTrue 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().
title
stringTitles the diff in a manner compatible with the output. Default empty.title_left
stringChange the HTML to the left of the title.
Default empty.title_right
stringChange the HTML to the right of the title.
Default empty.show_split_view
boolTrue for split view (two columns), false for un-split view (single column). Default true.
$field
string- The current revision field.
$compare_from
WP_Post- The revision post to compare from.
$compare_to
WP_Post- The revision post to compare to.
Source
$args = apply_filters( 'revision_text_diff_options', $args, $field, $compare_from, $compare_to );
Changelog
Version | Description |
---|---|
4.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.