revision_text_diff_options filter-hook . WP 4.1.0
Filters revisions text diff options.
Filters the options passed to wp_text_diff() when viewing a post revision.
Usage
add_filter( 'revision_text_diff_options', 'filter_function_name_7127', 10, 4 ); function filter_function_name_7127( $args, $field, $compare_from, $compare_to ){ // filter... return $args; }
- $args(array)
Associative array of options to pass to wp_text_diff().
- show_split_view(true/false)
True for split view (two columns), false for un-split view (single column).
Default: true
- show_split_view(true/false)
- $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.
Changelog
Since 4.1.0 | Introduced. |
Where the hook is called
wp-admin/includes/revision.php 108
$args = apply_filters( 'revision_text_diff_options', $args, $field, $compare_from, $compare_to );