Title: Programmatically create a revision
Last modified: July 13, 2018

---

# Programmatically create a revision

 *  Resolved [Antonio Gallo](https://wordpress.org/support/users/antoniogallo/)
 * (@antoniogallo)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/programmatically-create-a-revision/)
 * I wish to get people contribution to a post using an external form.
    Is there
   a way to programmatically create a new revision? Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [jamiechong](https://wordpress.org/support/users/jamiechong/)
 * (@jamiechong)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/programmatically-create-a-revision/#post-10708260)
 * [@antoniogallo](https://wordpress.org/support/users/antoniogallo/)
 * I haven’t done any testing with this, but you can try something like:
 *     ```
       Revisionize\create_revision($post, true);
       ```
   
 * I suspect there will likely be problems however.
 *  Thread Starter [Antonio Gallo](https://wordpress.org/support/users/antoniogallo/)
 * (@antoniogallo)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/programmatically-create-a-revision/#post-10709394)
 * Yes! I already did this! 🙂 It works great!
 * Only side note: i noticed that when the post is cloned the author is changed;
   
   so after i programmatically create a new post then i fix the author using update_post()
   using the new “id”.
 * Thanks for your answer anyway and for this great plugin.
 *  [deanna477](https://wordpress.org/support/users/deanna477/)
 * (@deanna477)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/programmatically-create-a-revision/#post-11178028)
 * Antonio, I believe I’m trying to accomplish the same thing. Can you please provide
   the steps that you took? Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Programmatically create a revision’ is closed to new replies.

 * ![](https://ps.w.org/revisionize/assets/icon-256x256.png?rev=1832949)
 * [Revisionize](https://wordpress.org/plugins/revisionize/)
 * [Support Threads](https://wordpress.org/support/plugin/revisionize/)
 * [Active Topics](https://wordpress.org/support/plugin/revisionize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/revisionize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/revisionize/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [deanna477](https://wordpress.org/support/users/deanna477/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/programmatically-create-a-revision/#post-11178028)
 * Status: resolved