Description
Filters whether a post has changed. By default a revision is saved only if one of the revisioned fields has changed. This filter allows for additional checks to determine if there were changes.
Occurrences
Filename | Line Number |
---|---|
wp-includes/revision.php | 208 |
Parameters
Type | Name | Description |
---|---|---|
bool | $post_has_changed | Whether the post has changed. |
WP_Post | $latest_revision | The latest revision post object. |
WP_Post | $post | The post object. |
PHP Doc
/**
* Filters whether a post has changed.
*
* By default a revision is saved only if one of the revisioned fields has changed.
* This filter allows for additional checks to determine if there were changes.
*
* @since 4.1.0
*
* @param bool $post_has_changed Whether the post has changed.
* @param WP_Post $latest_revision The latest revision post object.
* @param WP_Post $post The post object.
*/