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

Developer Resources

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

wp_save_post_revision_revisions_before_deletion

Filter Hook: Filters the revisions to be considered for deletion.

Source: wp-includes/revision.php:211

Used by 1 function | Uses 0 functions

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:559

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:605

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:698

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:798

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:833

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:459

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:859

Used by 1 function | Uses 9 functions

wp_delete_post_revision()

Function: Deletes a revision.

Source: wp-includes/revision.php:474

Used by 3 functions | Uses 3 functions

wp_delete_post_revision

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

Source: wp-includes/revision.php:492

Used by 1 function | Uses 0 functions

wp_get_post_revisions()

Function: Returns all revisions of specified post.

Source: wp-includes/revision.php:509

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:638

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:655

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:309

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:678

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:334

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:712

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:365

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:739

Used by 0 functions | Uses 4 functions

wp_get_post_revision()

Function: Gets a post revision.

Source: wp-includes/revision.php:383

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:762

Used by 0 functions | Uses 3 functions

wp_restore_post_revision()

Function: Restores a post to the specified revision.

Source: wp-includes/revision.php:418

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:251

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:291

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