Actually built an extension doing just that, will see if I can integrate it with the main plugin.
I’ve added support for deleting posts, will be included in next plugin release. If you want to try it out immediately, see https://github.com/stenberg/content-staging
Thanks!
Sorry, I never got back. This worked, thank you.
I tried the new extension, but when I use it, it sticks on the Deploying Batch screen:
Prepare import on xyz (ID: 1573)
Importing…
Any insights?
Does this happen with any batch that you try to deploy? Can you have a look at the debug.log and see if there is any clues in there?
[24-Sep-2015 16:12:08 UTC] PHP Fatal error: Class ‘DOMDocument’ not found in /var/www/html/wordpress/wp-content/plugins/content-staging/classes/listeners/class-delete-listener.php on line 238
Regular deployments seem to work OK.
Thanks, that’s really helpful!
So the problem seems to be that the delete functionality relies on the class DOMDocument – part of the PHP DOM extension. Most likely you don’t have this extension in your PHP package, causing the fatal error.
I’ll get rid of the DOM extension dependency somehow. Created an issue for this:
https://github.com/stenberg/content-staging/issues/76
For now I’ve moved the delete functionality to its own branch.
Thanks, your updated did the trick. Much appreciated.