wp_restore_post_revision Wordpress function


Description:

Restores a post to the specified revision.


Syntax:


Arguments:

(int|object) $revision_id Revision ID or revision object.
(array) $fields Optional. What fields to restore from. Defaults to all.


Return Type:

(mixed) Null if error, false if no fields to restore, (int) post ID if success.


Define At:

wp-includes/post.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/wp_restore_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 ×