WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about _wp_post_revision_field_

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-admin/includes/revision.php apply_filters 88 /**
* 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`
*
* @since 3.6.0
*
* @param string $revision_field The current revision field to compare to or from.
* @param string $field The current revision field.
* @param WP_Post $compare_from The revision post object to compare to or from.
* @param string $context The context of whether the current revision is the old
* or the new one. Values are 'to' or 'from'.
*/
wp-admin/includes/revision.php apply_filters 91 /**
* 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`
*
* @since 3.6.0
*
* @param string $revision_field The current revision field to compare to or from.
* @param string $field The current revision field.
* @param WP_Post $compare_from The revision post object to compare to or from.
* @param string $context The context of whether the current revision is the old
* or the new one. Values are 'to' or 'from'.
*/

Hook Parameters

Parameter Type Name Description
string $revision_field The current revision field to compare to or from.
string $field The current revision field.
WP_Post $compare_from The revision post object to compare to or from.
string $context The context of whether the current revision is the old
string $revision_field The current revision field to compare to or from.
string $field The current revision field.
WP_Post $compare_from The revision post object to compare to or from.
string $context The context of whether the current revision is the old