apply_filters( 'wp_save_post_revision_check_for_changes', bool $check_for_changes, WP_Post $last_revision, WP_Post $post )

Filters whether the post has changed since the last revision.


Description Description

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.


Parameters Parameters

$check_for_changes

(bool) Whether to check for changes before saving a new revision. Default true.

$last_revision

(WP_Post) The last revision post object.

$post

(WP_Post) The post object.


Top ↑

Source Source

File: wp-includes/revision.php

View on Trac


Top ↑

Changelog Changelog

Changelog
Version Description
3.6.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.