W3cubDocs

/WordPress

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

Contextually filter a post revision field.

Description

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.

Parameters

$revision_field

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

$field

(string) The current revision field.

$compare_from

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

$context

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

Source

File: wp-admin/includes/revision.php

View on Trac

Changelog

Version Description
3.6.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/_wp_post_revision_field_field