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_6571', 10, 4 );
function filter_function_name_6571( $revision_field, $field, $compare_from, $context ){
	// filter...

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


Since 3.6.0 Introduced.

Where the hook is called

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

Where in WP core the hook is used WordPress

Usage not found.