wpseek.com
A WordPress-centric search engine for devs and theme authors



wp-includes/revision.php › WordPress File

Functions28
Post revision functions.


Function Short description
wp_check_revisioned_meta_fields_have_changedCheck whether revisioned post meta fields have changed.
wp_delete_post_revisionDeletes a revision.
wp_get_latest_revision_id_and_total_countReturns the latest revision ID and count of revisions for a post.
wp_get_post_autosaveRetrieves the autosaved data of the specified post.
wp_get_post_revisionGets a post revision.
wp_get_post_revisionsReturns all revisions of specified post.
wp_get_post_revisions_urlReturns the url for viewing and potentially restoring revisions of a given post.
wp_is_post_autosaveDetermines if the specified post is an autosave.
wp_is_post_revisionDetermines if the specified post is a revision.
wp_post_revision_meta_keysDetermine which post meta fields should be revisioned.
wp_restore_post_revisionRestores a post to the specified revision.
wp_restore_post_revision_metaRestore the revisioned meta values for a post.
wp_revisions_enabledDetermines whether revisions are enabled for a given post.
wp_revisions_to_keepDetermines how many revisions to retain for a given post.
wp_save_post_revisionCreates a revision for the current version of a post.
wp_save_post_revision_on_insertSaves revisions for a post after all changes have been made.
wp_save_revisioned_meta_fieldsSave the revisioned meta fields.
_set_previewSets up the post object for preview based on the post autosave.
_show_post_previewFilters the latest content for preview from the post autosave.
_wp_copy_post_metaCopy post meta for the given key from one post to another.
_wp_get_post_revision_versionGets the post revision version.
_wp_post_revision_dataReturns a post array ready to be inserted into the posts table as a post revision.
_wp_post_revision_fieldsDetermines which fields of posts are to be saved in revisions.
_wp_preview_meta_filterFilters preview post meta retrieval to get values from the autosave.
_wp_preview_post_thumbnail_filterFilters post thumbnail lookup to set the post thumbnail.
_wp_preview_terms_filterFilters terms lookup to set the post format.
_wp_put_post_revisionInserts post data into the posts table as a post revision.
_wp_upgrade_revisions_of_postUpgrades the revisions author, adds the current post as a revision and sets the revisions version to 1.