apply_filters( "_wp_post_revision_field_{$field}", string $revision_field, string $field, WP_Post $compare_from, string $context )

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

Top ↑



(string) The current revision field to compare to or from.


(string) The current revision field.


(WP_Post) The revision post object to compare to or from.


(string) The context of whether the current revision is the old or the new one. Values are 'to' or 'from'.

Top ↑


File: wp-admin/includes/revision.php

View on Trac

Top ↑


Version Description
3.6.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.