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.
| Line | Code | 
|---|---|
| 99 |            *     Associative array of options to pass to wp_text_diff(). | 
| 100 |            * | 
| 101 |            *     @type bool $show_split_view True for split view (two columns), false for | 
| 102 |            *                                 un-split view (single column). Default true. | 
| 103 |            * } | 
| 104 |            * @param string  $field        The current revision field. | 
| 105 |            * @param WP_Post $compare_from The revision post to compare from. | 
| 106 |            * @param WP_Post $compare_to   The revision post to compare to. | 
| 107 |            */ | 
| 108 |           $args = apply_filters( 'revision_text_diff_options', $args, $field, $compare_from, $compare_to ); | 
| 109 |  | 
| 110 |           $diff = wp_text_diff( $content_from, $content_to, $args ); | 
| 111 |  | 
| 112 |           if ( ! $diff && 'post_title' === $field ) { | 
| 113 |                // It's a better user experience to still show the Title, even if it didn't change. | 
| 114 |                // No, you didn't see this. | 
| 115 |                $diff = '<table class="diff"><colgroup><col class="content diffsplit left"><col class="content diffsplit middle"><col class="content diffsplit right"></colgroup><tbody><tr>'; | 
| 116 |  | 
| 117 |                // In split screen mode, show the title before/after side by side. |