WordPress at Your Fingertips
filter is not described

wp_save_post_revision_check_for_changes filter-hook . WP 3.6.0

Filters whether the post has changed since the last 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.


add_filter( 'wp_save_post_revision_check_for_changes', 'filter_function_name_3900', 10, 3 );
function filter_function_name_3900( $check_for_changes, $last_revision, $post ){
	// filter...

	return $check_for_changes;
Whether to check for changes before saving a new revision.
Default: true
The last revision post object.
The post object.


Since 3.6.0 Introduced.

Where the hook is called

wp-includes/revision.php 159
if ( isset( $last_revision ) && apply_filters( 'wp_save_post_revision_check_for_changes', true, $last_revision, $post ) ) {

Where in WP core the hook is used WordPress

Usage not found.