WordPress at a glance
filter is not described

_wp_post_revision_field_(field) filter-hook . WP 3.6.0

Contextually filter a post revision field.

The dynamic portion of the hook name, $field, corresponds to each of the post fields of the revision object being iterated over in a foreach statement.


add_filter( '_wp_post_revision_field_(field)', 'filter_function_name_7954', 10, 4 );
function filter_function_name_7954( $$field, $field, $compare_from, $string ){
	// filter...

	return $$field;
The current revision field to compare to or from.
The current revision field.
The revision post object to compare to or from.
null The context of whether the current revision is the old or the new one. Values are 'to' or 'from'.

Where the hook is called

wp-admin/includes/revision.php 73
$content_from = $compare_from ? apply_filters( "_wp_post_revision_field_{$field}", $compare_from->$field, $field, $compare_from, 'from' ) : '';
wp-admin/includes/revision.php 76
$content_to = apply_filters( "_wp_post_revision_field_{$field}", $compare_to->$field, $field, $compare_to, 'to' );

Where the hook is used (in WP core)

Does not used.