Support » Plugin: Duplicate Post » Custom plugin with own db table, not using post_meta to store data

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


    Just for future reference to those who may be interested I managed to solve actually by using

    add_action('dp_duplicate_post', 'my_custom_function', 9, 2);
    function my_custom_function($new_id, $post){
      $old_post_id = $post->ID;

    Thaks to the plugin developer for making this (and others) hook available.

    • This reply was modified 1 month ago by  Webartisan.
    Plugin Author Lopo


    Hi @webartisan,
    yes, you can use that hook, it’s actually the same hook used by my code to perform all the operations beside the “bare” cloning of the post (terms, meta fields etc).

    You can find documentation for all the actions hooks here:



    Thank you @lopo and again complimenti per il plugin 😉

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.