• About WordPress
    • About WordPress
    • WordPress.org
    • Documentation
    • Support
    • Feedback
  • Log In
  • Register
WordPress.org
WordPress.org
  • Plugins
  • Themes
  • Patterns
  • Learn
  • Support
    • Documentation
    • Forums
  • News
  • About
  • Get Involved
    • Five for the Future
  • Showcase
  • Mobile
  • Hosting
  • Openverse
  • Get WordPress
Get WordPress

Code Reference

Skip to content
Filter by type:
Search
Browse: Home / Reference / wp-includes/revision.php

wp_get_post_revisions_url()

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

Source: wp-includes/revision.php:527

Used by 0 functions | Uses 4 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:621

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

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

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

Used by 0 functions | Uses 4 functions

wp_get_post_revision()

Function: Gets a post revision.

Source: wp-includes/revision.php:365

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

Used by 0 functions | Uses 3 functions

wp_restore_post_revision()

Function: Restores a post to the specified revision.

Source: wp-includes/revision.php:398

Used by 1 function | Uses 9 functions

_wp_get_post_revision_version()

Function: Gets the post revision version.

Source: wp-includes/revision.php:753

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

Used by 1 function | Uses 0 functions

_wp_upgrade_revisions_of_post()

Function: Upgrade the revisions author, add the current post as a revision and set the revisions version to 1

Source: wp-includes/revision.php:779

Used by 1 function | Uses 9 functions

wp_delete_post_revision()

Function: Deletes a revision.

Source: wp-includes/revision.php:452

Used by 4 functions | Uses 4 functions

wp_delete_post_revision

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

Source: wp-includes/revision.php:468

Used by 1 function | Uses 0 functions

wp_get_post_revisions()

Function: Returns all revisions of specified post.

Source: wp-includes/revision.php:485

Used by 12 functions | Uses 4 functions

wp_revisions_enabled()

Function: Determine if revisions are enabled for a given post.

Source: wp-includes/revision.php:561

Used by 8 functions | Uses 1 function

wp_revisions_to_keep()

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

Source: wp-includes/revision.php:578

Used by 2 functions | Uses 4 functions

wp_is_post_autosave()

Function: Determines if the specified post is an autosave.

Source: wp-includes/revision.php:293

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

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

Used by 3 functions | Uses 9 functions

_set_preview()

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

Source: wp-includes/revision.php:635

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

Used by 1 function | Uses 0 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 4 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 12 functions

wp_save_post_revision_check_for_changes

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

Source: wp-includes/revision.php:159

Used by 1 function | Uses 0 functions

wp_get_post_autosave()

Function: Retrieve the autosaved data of the specified post.

Source: wp-includes/revision.php:236

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

Used by 5 functions | Uses 1 function
  • About
  • News
  • Hosting
  • Donate
  • Support
  • 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
Code is Poetry