Title: action after cloning
Last modified: November 3, 2020

---

# action after cloning

 *  Resolved [tsjippy](https://wordpress.org/support/users/tsjippy/)
 * (@tsjippy)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/action-after-cloning/)
 * What is the correct syntax? I found two potentials:
 *     ```
       add_action( 'wpstg_clone_action_staging', array($this, 'wpstg_execute_after_cloning' ), 10);
       add_action( 'wpstg.clone_first_run', array($this, 'wpstg_execute_after_cloning' ), 10);
       ```
   
 * Both don’t seem to work I tested with this:
 *     ```
       function wpstg_execute_after_cloning() { 
           error_log("test1"); 
       }
       ```
   
    -  This topic was modified 5 years, 6 months ago by [tsjippy](https://wordpress.org/support/users/tsjippy/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * (@renehermi)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/action-after-cloning/#post-13621956)
 * Hi, both are correct but the first one is deprecated and it’s recommended to 
   use the first one.
 * It seems you find an issue if this does not work. We are checking this and will
   release an update for it then.
 * Thank you for the heads up.
 * René

Viewing 1 replies (of 1 total)

The topic ‘action after cloning’ is closed to new replies.

 * ![](https://ps.w.org/wp-staging/assets/icon-256x256.png?rev=2972932)
 * [WP STAGING - WordPress Backup, Restore & Migration](https://wordpress.org/plugins/wp-staging/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-staging/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-staging/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-staging/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-staging/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-staging/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/action-after-cloning/#post-13621956)
 * Status: resolved