Filter hook 'wp_save_post_revision_check_for_changes'

in WP Core File wp-includes/revision.php at line 186

Description

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.

Occurrences

Filename Line Number
wp-includes/revision.php 186

Parameters

Type Name Description
bool $check_for_changes Whether to check for changes before saving a new revision. Default true.
WP_Post $latest_revision The latest revision post object.
WP_Post $post The post object.

PHP Doc

/**
		 * 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.
		 *
		 * @since 3.6.0
		 *
		 * @param bool    $check_for_changes Whether to check for changes before saving a new revision.
		 *                                   Default true.
		 * @param WP_Post $latest_revision   The latest revision post object.
		 * @param WP_Post $post              The post object.
		 */