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