WordPress at Your Fingertips
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 a name of a field of the revision object.

Possible hook names include:

  • _wp_post_revision_field_post_title
  • _wp_post_revision_field_post_content
  • _wp_post_revision_field_post_excerpt


add_filter( '_wp_post_revision_field_(field)', 'filter_function_name_9964', 10, 4 );
function filter_function_name_9964( $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'.

Where the hook is called

wp-admin/includes/revision.php 88
$content_from = $compare_from ? apply_filters( "_wp_post_revision_field_{$field}", $compare_from->$field, $field, $compare_from, 'from' ) : '';
wp-admin/includes/revision.php 91
$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.