wphooks.info - wp_get_revision_ui_diff

wp_get_revision_ui_diff

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-admin/includes/revision.php:
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
	/**
	 * Filters the fields displayed in the post revision diff UI.
	 *
	 * @since 4.1.0
	 *
	 * @param array[] $return       Array of revision UI fields. Each item is an array of id, name, and diff.
	 * @param WP_Post $compare_from The revision post to compare from.
	 * @param WP_Post $compare_to   The revision post to compare to.
	 */
	return apply_filters( 'wp_get_revision_ui_diff', $return, $compare_from, $compare_to );

}

/**
 * Prepare revisions for JavaScript.
 *
 * @since 3.6.0
 *
 * @param object|int $post                 The post object. Also accepts a post ID.