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 |
---|---|
79 | * |
80 | * @since 3.6.0 |
81 | * |
82 | * @param string $revision_field The current revision field to compare to or from. |
83 | * @param string $field The current revision field. |
84 | * @param WP_Post $compare_from The revision post object to compare to or from. |
85 | * @param string $context The context of whether the current revision is the old |
86 | * or the new one. Values are 'to' or 'from'. |
87 | */ |
88 | $content_from = $compare_from ? apply_filters( "_wp_post_revision_field_{$field}", $compare_from->$field, $field, $compare_from, 'from' ) : ''; |
89 |
|
90 | /** This filter is documented in wp-admin/includes/revision.php */ |
91 | $content_to = apply_filters( "_wp_post_revision_field_{$field}", $compare_to->$field, $field, $compare_to, 'to' ); |
92 |
|
93 | $args = array( |
94 | 'show_split_view' => true, |
95 | 'title_left' => __( 'Removed' ), |
96 | 'title_right' => __( 'Added' ), |
97 | ); |
98 |
|
99 | /** |
100 | * Filters revisions text diff options. |