_wp_put_post_revision Wordpress function


Description:

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


Syntax:


Arguments:

(int|object|array) $post Post ID, post object OR post array.
(bool) $autosave Optional. Is the revision an autosave?


Return Type:

(mixed) Null or 0 if error, new revision ID if success.


Define At:

wp-includes/post.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/_wp_put_post_revision


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×