_wp_put_post_revision


_wp_put_post_revision ( $post = null, $autosave = false )

Access:
  • private
Parameters:
  • (int|WP_Post|array|null) post Post ID, post object OR post array.
  • (bool) autosave Optional. Whether the revision is an autosave or not. Default false.
Returns:
  • (int|WP_Error) WP_Error or 0 if error, new revision ID if success.
Defined at:

Description

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

Related Functions

wp_get_post_revision, wp_get_post_revisions, wp_is_post_revision, wp_list_post_revisions, wp_delete_post_revision

Top Google Results

User discussions

wpseek mobile