WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
This hook occurs 2 times in this file.
Line | Code |
---|---|
63 | * |
64 | * @since 3.6.0 |
65 | * |
66 | * @param string $compare_from->$field The current revision field to compare to or from. |
67 | * @param string $field The current revision field. |
68 | * @param WP_Post $compare_from The revision post object to compare to or from. |
69 | * @param string null The context of whether the current revision is the old |
70 | * or the new one. Values are 'to' or 'from'. |
71 | */ |
72 | $content_from = $compare_from ? apply_filters( "_wp_post_revision_field_$field", $compare_from->$field, $field, $compare_from, 'from' ) : ''; |
73 |
|
74 | /** This filter is documented in wp-admin/includes/revision.php */ |
75 | $content_to = apply_filters( "_wp_post_revision_field_$field", $compare_to->$field, $field, $compare_to, 'to' ); |
76 |
|
77 | $args = array( |
78 | 'show_split_view' => true |
79 | ); |
80 |
|
81 | /** |
82 | * Filter revisions text diff options. |
83 | * |
84 | * Filter the options passed to {@see wp_text_diff()} when viewing a post revision. |