wp_save_post_revision_post_has_changed WordPress Filter Hook
The wp_save_post_revision_post_has_changed Wordpress hook is called whenever a revision is saved for a post. This hook allows you to perform any actions you need to before the revision is saved.
apply_filters( 'wp_save_post_revision_post_has_changed', bool $post_has_changed , WP_Post $last_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
Changelog
Version | Description |
---|---|
4.1.0 | Introduced. |