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 |
---|---|
71 | * |
72 | * @since 3.6.0 |
73 | * |
74 | * @param string $compare_from->$field The current revision field to compare to or from. |
75 | * @param string $field The current revision field. |
76 | * @param WP_Post $compare_from The revision post object to compare to or from. |
77 | * @param string null The context of whether the current revision is the old |
78 | * or the new one. Values are 'to' or 'from'. |
79 | */ |
80 | $content_from = $compare_from ? apply_filters( "_wp_post_revision_field_{$field}", $compare_from->$field, $field, $compare_from, 'from' ) : ''; |
81 |
|
82 | /** This filter is documented in wp-admin/includes/revision.php */ |
83 | $content_to = apply_filters( "_wp_post_revision_field_{$field}", $compare_to->$field, $field, $compare_to, 'to' ); |
84 |
|
85 | $args = array( |
86 | 'show_split_view' => true, |
87 | ); |
88 |
|
89 | /** |
90 | * Filters revisions text diff options. |
91 | * |
92 | * Filters the options passed to wp_text_diff() when viewing a post revision. |