Title: API / PHP function?
Last modified: September 1, 2016

---

# API / PHP function?

 *  Resolved [eddr](https://wordpress.org/support/users/eddr/)
 * (@eddr)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/api-php-function/)
 * Hi
 * I want to use it programmatically, how do we do that?
    Should I just use the “
   duplicate_post_create_duplicate” function?
 * Many thanks, much appreciated!
 * [https://wordpress.org/plugins/duplicate-post/](https://wordpress.org/plugins/duplicate-post/)

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

 *  Plugin Author [Enrico Battocchi](https://wordpress.org/support/users/lopo/)
 * (@lopo)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/api-php-function/#post-8267862)
 * Hi!
    yes, that’s the one! As you can see, it basically takes just the post to
   clone, using the options stored in the DB. Maybe I’ll change that so you can 
   pass different options when needed (but I’ll make sure to retain compatibility
   with the current signature).
 *  Thread Starter [eddr](https://wordpress.org/support/users/eddr/)
 * (@eddr)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/api-php-function/#post-8267868)
 * Great!
 * How can one say thanks for such an excellent and useful plugin?

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

The topic ‘API / PHP function?’ is closed to new replies.

 * ![](https://ps.w.org/duplicate-post/assets/icon-256x256.png?rev=2336666)
 * [Yoast Duplicate Post](https://wordpress.org/plugins/duplicate-post/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/duplicate-post/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/duplicate-post/)
 * [Active Topics](https://wordpress.org/support/plugin/duplicate-post/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/duplicate-post/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/duplicate-post/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [eddr](https://wordpress.org/support/users/eddr/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/api-php-function/#post-8267868)
 * Status: resolved