wp-jamstack-deployments icon indicating copy to clipboard operation
wp-jamstack-deployments copied to clipboard

Possible to add a payload of the changed post ID

Open altryne opened this issue 3 years ago • 2 comments

We're thinking of using this plugin to push an update to a search index in Algolia. Currently from my tests this plugin just publishes a webhook that's empty.

Is it possible to add the post ID somehow to the payload?

altryne avatar Aug 07 '20 17:08 altryne

It's not currently possible, however I have just created a PR that adds support for this.

https://github.com/crgeary/wp-jamstack-deployments/pull/43

Would you mind trying it out and let me know what you think? If it does what you need, then i'd be happy to merge it in and release.

crgeary avatar Aug 08 '20 14:08 crgeary

Unfortunately I can't install plugins from code :/ Thanks for adding this, if this makes it into production I'd love to give it a shot, meanwhile I had to find another plugin that sends webhooks and deploys

altryne avatar Aug 10 '20 15:08 altryne