wp_save_post_revision_post_has_changed

wp_save_post_revision_post_has_changed

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('wp_save_post_revision_post_has_changed') is found 1 times:

  • /wp-includes/revision.php line 208
    			 * @param bool    $post_has_changed Whether the post has changed.
    			 * @param WP_Post $latest_revision  The latest revision post object.
    			 * @param WP_Post $post             The post object.
    			 */
    			$post_has_changed = (bool) apply_filters( 'wp_save_post_revision_post_has_changed', $post_has_changed, $latest_revision, $post );
    
    			// Don't save revision if post unchanged.
    			if ( ! $post_has_changed ) {
    				return;
    			}
    		}
    

See this hook used in plugins: