On this page
apply_filters( 'wp_save_post_revision_post_has_changed', bool $post_has_changed, WP_Post $latest_revision, WP_Post $post )
Filters whether a post has changed.
Description
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.
Parameters
Source
File: wp-includes/revision.php. View all references
$post_has_changed = (bool) apply_filters( 'wp_save_post_revision_post_has_changed', $post_has_changed, $latest_revision, $post );
Related
Used By
| Used By | Description |
|---|---|
| wp_save_post_revision() wp-includes/revision.php | Creates a revision for the current version of a post. |
Changelog
| Version | Description |
|---|---|
| 4.1.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_save_post_revision_post_has_changed