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$revision_fieldstring
$fieldstring
$compare_fromWP_Post
$contextstring
'to' or 'from'.$content_from = $compare_from ? apply_filters( "_wp_post_revision_field_{$field}", $compare_from->$field, $field, $compare_from, 'from' ) : '';
| Version | Description |
|---|---|
| 3.6.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/_wp_post_revision_field_field