• Resolved pypto

    (@pypto)


    I want to create a ‘reset staging’ function on my custom plugin, I see WP Staging supports it, please tell me how can I call the ‘reset staging’ site command from my plugin, I have identified the ‘staging ID’

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor alaasalama

    (@alaasalama)

    Hi @pypto

    We support WP-CLI commands in WP STAGING PRO, mainly focusing on the backups feature, take a look at them here:
    https://wp-staging.com/docs/wp_cli-commands-for-wp-staging/

    At the moment, we don’t have a specific WP-CLI command for resetting a staging site. Could you share a bit more about your use case? Understanding how you’d like to use this feature will allow us to communicate it effectively to our development team for potential future consideration.

    We are currently in the process of refactoring the staging creation, so in the near future we might be able to provide a CLI command or an API call to reset a staging site automatically by using an external action.

    Thanks,
    Alaa

    Tom

    (@tomaskmaika)

    Hi @alaasalama
    I’m writing a plugin to automatically reset my ‘staging site’ every 60 minutes, as I want to create a sandbox environment for my wordpress site, but I can’t currently figure out how to reset the ‘staging site’ other than manually.

    Plugin Author Rene Hermenau

    (@renehermi)

    Hi @tomaskmaika

    thanks for letting us know. While this sounds useful at a first glance, don’t you think it’s a feature that can lead to unwanted sideeffects?

    Imagine you are in the middle of adjusting and testing things on your staging site. How do you ensure that the RESET is not executed while you are working on the staging site? Even if you reset the staging site at certain time and you know that time, you know how fast time flies when coding:-)

    Due to that reason we will unlikely add such a feature to the wp staging core plugin but check out periodically our changelog to see when we have the CLI integration ready for the reset operation.

    All the best
    René

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