post revisions (tag)

wp_get_post_revision()

Gets a post revision by revision's ID. If there is no such revision, null will be returned.

wp_get_post_revisions()

Gets all revisions (edits, changes) of the specified post.

wp_is_post_revision()

Determines whether the specified post is a revision.

wp_revisions_enabled()

Check if revisions are enabled for the specified post.

wp_revisions_to_keep()

Defines how many of the latest revisions (changes) should be stored in the database for a specific post.

wp_save_post_revision()

Creates a revision (copy) of the specified post. It also deletes excess revisions.

wp_text_diff()

Gets a human-readable HTML table with differences between two provided strings (texts). Used for comparing changes in post revisions.