Feature Request - Run a command after export
I'd like to respectfully request a feature. I need to run a custom rsync command after I export my WordPress site to static html. Can we add a "Run a command" option to the "Where will you host the optimized version of your site?" Dropdown list?
PS. I can implement this myself if you'd like to collaborate. Let me know.
- 1 replies
- Discussionabout how and if to do this idea
- Reply (insert)
- Progresswith doing this idea
- Leon Stafford @leonstafford2019-03-28 09:28:15.907Z
We have one filter/action you can use to trigger this now:https://github.com/WP2Static/wp2static#post-deployment-hook
Else, if you run WP2Static via the WP-CLI command
wp2static, then you can roll into your script with rsync.
Also, openrsync is now a thing being developed by the OpenBSD peeps and I believe may be available to use in other OS's now.
More APIs will be exposed in WP2Static from version 7 onwards.