wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_save_post_revision_check_for_changes › WordPress Filter Hooks

Since3.6.0
Deprecatedn/a
apply_filters( 'wp_save_post_revision_check_for_changes', true, $latest_revision, $post )
Parameters: (3)
  • () check_for_changes Whether to check for changes before saving a new revision. Default true.
    Required: Yes
  • () latest_revision The latest revision post object.
    Required: Yes
  • () post The post object.
    Required: Yes
Defined at:
Codex:

Filters whether the post has changed since the latest revision.

By default a revision is saved only if one of the revisioned fields has changed. This filter can override that so a revision is saved even if nothing has changed.




Source

if ( isset( $latest_revision ) && apply_filters( 'wp_save_post_revision_check_for_changes', true, $latest_revision, $post ) ) {