Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-admin/includes/revision.php | apply_filters | 116 | /** * Filters revisions text diff options. * * Filters the options passed to wp_text_diff() when viewing a post revision. * * @since 4.1.0 * * @param 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. * } * @param string $field The current revision field. * @param WP_Post $compare_from The revision post to compare from. * @param WP_Post $compare_to The revision post to compare to. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
array | $arg | s { |
string | $field | The current revision field. |
WP_Post | $compare_from | The revision post to compare from. |
WP_Post | $compare_to | The revision post to compare to. |