wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
wp-includes/revision.php › WordPress File
Funktionen28
› Post revision functions.
Funktion | Kurzbeschreibung |
---|---|
wp_check_revisioned_meta_fields_have_changed | Check whether revisioned post meta fields have changed. |
wp_delete_post_revision | Deletes a revision. |
wp_get_latest_revision_id_and_total_count | Returns the latest revision ID and count of revisions for a post. |
wp_get_post_autosave | Retrieves the autosaved data of the specified post. |
wp_get_post_revision | Gets a post revision. |
wp_get_post_revisions | Returns all revisions of specified post. |
wp_get_post_revisions_url | Returns the url for viewing and potentially restoring revisions of a given post. |
wp_is_post_autosave | Determines if the specified post is an autosave. |
wp_is_post_revision | Determines if the specified post is a revision. |
wp_post_revision_meta_keys | Determine which post meta fields should be revisioned. |
wp_restore_post_revision | Restores a post to the specified revision. |
wp_restore_post_revision_meta | Restore the revisioned meta values for a post. |
wp_revisions_enabled | Determines whether revisions are enabled for a given post. |
wp_revisions_to_keep | Determines how many revisions to retain for a given post. |
wp_save_post_revision | Creates a revision for the current version of a post. |
wp_save_post_revision_on_insert | Saves revisions for a post after all changes have been made. |
wp_save_revisioned_meta_fields | Save the revisioned meta fields. |
_set_preview | Sets up the post object for preview based on the post autosave. |
_show_post_preview | Filters the latest content for preview from the post autosave. |
_wp_copy_post_meta | Copy post meta for the given key from one post to another. |
_wp_get_post_revision_version | Gets the post revision version. |
_wp_post_revision_data | Returns a post array ready to be inserted into the posts table as a post revision. |
_wp_post_revision_fields | Determines which fields of posts are to be saved in revisions. |
_wp_preview_meta_filter | Filters preview post meta retrieval to get values from the autosave. |
_wp_preview_post_thumbnail_filter | Filters post thumbnail lookup to set the post thumbnail. |
_wp_preview_terms_filter | Filters terms lookup to set the post format. |
_wp_put_post_revision | Inserts post data into the posts table as a post revision. |
_wp_upgrade_revisions_of_post | Upgrades the revisions author, adds the current post as a revision and sets the revisions version to 1. |