A WordPress-centric search engine for devs and theme authors



wp_save_post_revision_post_has_changed ›

Since4.1.0
Deprecatedn/a
apply_filters( 'wp_save_post_revision_post_has_changed', $post_has_changed, $last_revision, $post )
Parameters: (3)
  • (bool) $post_has_changed Whether the post has changed.
    Required: Yes
  • (WP_Post) $last_revision The last revision post object.
    Required: Yes
  • (WP_Post) $post The post object.
    Required: Yes
Defined at:
Codex:

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.





Source

$post_has_changed = (bool) apply_filters( 'wp_save_post_revision_post_has_changed', $post_has_changed, $last_revision, $post );