Glad to hear that the plugin is of help!
Currently there is no sme_deployed hook, but as you correctly points out, there really should be!
I’ll make sure to include this in the next release, I will keep you posted on any progress on this.
I’ve created an issue to address this: https://github.com/stenberg/content-staging/issues/56
Hi!
Two new hooks has been added in the last release of the WordPress Content Staging plugin version 1.2.1 that addresses this feature request.
The hook you want to use is called sme_imported and runs on the production environment after the entire batch has been imported:
function call_url_fix( $job ) {
// Do something here ...
}
// Triggered on production when import is completed.
add_action( 'sme_imported', 'call_url_fix' );
If you would like to perform some operations on the staging environment as well after deploy is completed, you can use the sme_deployed hook:
add_action( 'sme_deployed', function() {
// Do something on staging environment ...
});
Hope this helps!
Wow! Wasn’t expecting this feature to be added so quickly, thanks!
I will give it a try ASAP and let you know the outcome.
I was finally able to test the new feature and it worked like a charm! I will be using this plugin extensively over the next few weeks so I will provide feedback and help wherever I can.
Thanks again for your speedy fix!