Skip to content
  • Log In
  • Register
WordPress.org
  • News
  • Download & Extend
    • Get WordPress
    • Themes
    • Patterns
    • Plugins
    • Openverse
    • Mobile
    • Hosting
  • Learn
    • Learn WordPress
    • Documentation
    • Forums
    • WordPress.tv
    • Developers
  • Community
    • Make WordPress
    • WordCamp
    • Meetups
    • Photo Directory
    • Job Board
    • Five for the Future
  • About
    • About WordPress
    • Showcase
    • Gutenberg
    • Enterprise
  • Get WordPress
Get WordPress

Developer Resources

Browse: Home / Reference / wp-includes/revision.php

wp_get_latest_revision_id_and_total_count()

Function: Returns the latest revision ID and count of revisions for a post.

Source: wp-includes/revision.php:544

Used by 4 functions | Uses 5 functions

wp_get_post_revisions_url()

Function: Returns the url for viewing and potentially restoring revisions of a given post.

Source: wp-includes/revision.php:590

Used by 0 functions | Uses 5 functions

wp_{$post->post_type}_revisions_to_keep

Filter Hook: Filters the number of revisions to save for the given post by its post type.

Source: wp-includes/revision.php:683

Used by 1 function | Uses 0 functions

_wp_preview_post_thumbnail_filter()

Function: Filters post thumbnail lookup to set the post thumbnail.

Source: wp-includes/revision.php:783

Used by 0 functions | Uses 1 function

_wp_post_revision_data()

Function: Returns a post array ready to be inserted into the posts table as a post revision.

Source: wp-includes/revision.php:75

Used by 3 functions | Uses 2 functions

wp_save_post_revision_post_has_changed

Filter Hook: Filters whether a post has changed.

Source: wp-includes/revision.php:182

Used by 1 function | Uses 0 functions

_wp_get_post_revision_version()

Function: Gets the post revision version.

Source: wp-includes/revision.php:818

Used by 2 functions | Uses 0 functions

wp_restore_post_revision

Action Hook: Fires after a post revision has been restored.

Source: wp-includes/revision.php:444

Used by 1 function | Uses 0 functions

_wp_upgrade_revisions_of_post()

Function: Upgrades the revisions author, adds the current post as a revision and sets the revisions version to 1.

Source: wp-includes/revision.php:844

Used by 1 function | Uses 9 functions

wp_delete_post_revision()

Function: Deletes a revision.

Source: wp-includes/revision.php:459

Used by 4 functions | Uses 3 functions

wp_delete_post_revision

Action Hook: Fires once a post revision has been deleted.

Source: wp-includes/revision.php:477

Used by 1 function | Uses 0 functions

wp_get_post_revisions()

Function: Returns all revisions of specified post.

Source: wp-includes/revision.php:494

Used by 8 functions | Uses 4 functions

wp_revisions_enabled()

Function: Determines whether revisions are enabled for a given post.

Source: wp-includes/revision.php:623

Used by 9 functions | Uses 1 function

wp_revisions_to_keep()

Function: Determines how many revisions to retain for a given post.

Source: wp-includes/revision.php:640

Used by 2 functions | Uses 2 functions

wp_is_post_autosave()

Function: Determines if the specified post is an autosave.

Source: wp-includes/revision.php:295

Used by 7 functions | Uses 1 function

wp_revisions_to_keep

Filter Hook: Filters the number of revisions to save for the given post.

Source: wp-includes/revision.php:663

Used by 1 function | Uses 0 functions

_wp_put_post_revision()

Function: Inserts post data into the posts table as a post revision.

Source: wp-includes/revision.php:319

Used by 3 functions | Uses 8 functions

_set_preview()

Function: Sets up the post object for preview based on the post autosave.

Source: wp-includes/revision.php:697

Used by 0 functions | Uses 3 functions

_wp_put_post_revision

Action Hook: Fires once a revision has been saved.

Source: wp-includes/revision.php:350

Used by 1 function | Uses 0 functions

_show_post_preview()

Function: Filters the latest content for preview from the post autosave.

Source: wp-includes/revision.php:724

Used by 0 functions | Uses 4 functions

wp_get_post_revision()

Function: Gets a post revision.

Source: wp-includes/revision.php:368

Used by 5 functions | Uses 1 function

_wp_preview_terms_filter()

Function: Filters terms lookup to set the post format.

Source: wp-includes/revision.php:747

Used by 0 functions | Uses 3 functions

wp_restore_post_revision()

Function: Restores a post to the specified revision.

Source: wp-includes/revision.php:403

Used by 1 function | Uses 8 functions

_wp_post_revision_fields()

Function: Determines which fields of posts are to be saved in revisions.

Source: wp-includes/revision.php:22

Used by 6 functions | Uses 3 functions

_wp_post_revision_fields

Filter Hook: Filters the list of fields saved in post revisions.

Source: wp-includes/revision.php:54

Used by 1 function | Uses 0 functions

wp_save_post_revision()

Function: Creates a revision for the current version of a post.

Source: wp-includes/revision.php:109

Used by 2 functions | Uses 10 functions

wp_save_post_revision_check_for_changes

Filter Hook: Filters whether the post has changed since the latest revision.

Source: wp-includes/revision.php:160

Used by 1 function | Uses 0 functions

wp_get_post_autosave()

Function: Retrieves the autosaved data of the specified post.

Source: wp-includes/revision.php:237

Used by 8 functions | Uses 3 functions

wp_is_post_revision()

Function: Determines if the specified post is a revision.

Source: wp-includes/revision.php:277

Used by 5 functions | Uses 1 function
  • About
  • News
  • Hosting
  • Donate
  • Swag
  • Documentation
  • Developers
  • Get Involved
  • Learn
  • Showcase
  • Plugins
  • Themes
  • Patterns
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code
WordPress.org
WordPress.org
  • Visit our Facebook page
  • Visit our Twitter account
  • Visit our Instagram account
  • Visit our LinkedIn account
Code is Poetry