WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Купить персональные IPV4 и IPV6 прокси
фильтр не описан

wp_save_post_revision_post_has_changed хук-фильтр . WP 4.1.0

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.

Использование

add_filter( 'wp_save_post_revision_post_has_changed', 'filter_function_name_5556', 10, 3 );
function filter_function_name_5556( $post_has_changed, $last_revision, $post ){
	// filter...

	return $post_has_changed;
}
$post_has_changed(true/false)
Whether the post has changed.
$last_revision(WP_Post)
The last revision post object.
$post(WP_Post)
The post object.

Список изменений

С версии 4.1.0 Введена.

Где вызывается хук

wp_save_post_revision()
wp_save_post_revision_post_has_changed
wp-includes/revision.php 179
$post_has_changed = (bool) apply_filters( 'wp_save_post_revision_post_has_changed', $post_has_changed, $last_revision, $post );

Где используется хук (в ядре WP)

wp-includes/class-wp-customize-manager.php 2886
add_filter( 'wp_save_post_revision_post_has_changed', array( $this, '_filter_revision_post_has_changed' ), 5, 3 );
wp-includes/class-wp-customize-manager.php 2942
remove_filter( 'wp_save_post_revision_post_has_changed', array( $this, '_filter_revision_post_has_changed' ) );