{"id":300,"date":"2022-10-22T13:32:11","date_gmt":"2022-10-22T13:32:11","guid":{"rendered":"https:\/\/jonathan-wright.com\/?p=300"},"modified":"2022-10-22T13:32:14","modified_gmt":"2022-10-22T13:32:14","slug":"post-webhook-plugin","status":"publish","type":"post","link":"https:\/\/jonathan-wright.com\/post-webhook-plugin\/","title":{"rendered":"Post Webhook Plugin – How to Use"},"content":{"rendered":"\n

Who is the plugin for<\/h2>\n\n\n\n

I built the Post Webhook Plugin for WordPress because I wanted to automatically send key information about my posts and pages into Airtable so that I could further automate my content workflow.<\/p>\n\n\n\n

I couldn’t find a free plugin that did this and the paid options (AutomatorWP & WP Webhooks) were expensive for what I needed. So I built my own plugin.<\/p>\n\n\n\n

I no longer need to manually update my Airtable table with all the details about my posts & pages, Post Webhook does it all automatically because the plugin sends the data straight to Airtable as soon as I hit Publish or Trash in WordPress.<\/p>\n\n\n\n

After using the plugin for a number of months I figured it could be useful for other content creators as well, so I tidied it up a bit and published it on the WordPress Plugin Store. It’s totally free, without any limits, so use it and enjoy it.<\/p>\n\n\n\n

You can download it from the WordPress Plugin Directory<\/a>.<\/p>\n\n\n\n

You’re not limited to just using Airtable, the plugin works for any webhook-capable system. So you could use it to send the data wherever you like; Google Sheets, Trello, Clickup, Monday, Asana etc. etc. Some of these tools directly support webhooks, whilst others will need something like Integromat\/Make, Zapier, Pabbly etc. sitting in the middle.<\/p>\n\n\n\n

What is a webhook<\/h2>\n\n\n\n

Ok, so I’ve used the term Webhook a few times already and I’m going to be using it more, so for those of you that don’t know what a webhook is here’s a quick, non-technical, explainer.<\/p>\n\n\n\n

A webhook simply delivers data from one system to another in real-time when an event happens. So in the case of this plugin, the event is you hitting that publish or trash button in WordPress. The webhook (this plugin) then delivers the data shown below, to a URL which is provided by the system receiving the data.<\/p>\n\n\n\n

What data does Post Webhook send<\/h2>\n\n\n\n

Here’s the data the plugin sends.<\/p>\n\n\n\n

For Published or Updated posts and pages:<\/p>\n\n\n\n

[message] => Post #359 has been published with title – Test Post
[author_display_name] => jon
[post_ID] => 359
[post_title] => test post
[post_date] => 2022-10-17<\/em> 11:57:13<\/em>
[post_modified] => 2022-10-17<\/em> 11:57:13<\/em>
[post_guid] => http:\/\/jonathan-wright.com\/?p=359
[post_slug] => test-post
[permalink] => http:\/\/jonathan-wright.com\/test-post\/
[post_type] => post
[post_status] => publish
[post_categories] => automation, seo
[post_tags] => tag1, tag2
[post_word_count] => 106<\/p>\n\n\n\n

For Deleted posts and pages:<\/p>\n\n\n\n

[message] => Post #359 has been trashed with title – Test Post
[post_ID] => 359
[post_modified] => 2022-10-17<\/em> 11:57:37<\/em>
[post_guid] => http:\/\/jonathan-wright.com\/?p=359
[post_status] => trash<\/p>\n\n\n\n

How do I set up Post Webhook<\/h2>\n\n\n\n

I have tried to make the plugin as simple to use as possible, in fact, there is only one thing you need to do once you have installed it and activated it and that’s provide it with the URL you want to send the data to. That’s it, once you’ve done that the next time you publish a new post or delete a previously published post the data will be sent to the webhook.<\/p>\n\n\n\n

\"Post<\/figure>\n\n\n\n

<\/p>\n\n\n\n

Notes for new Post Webhook plugin users<\/h2>\n\n\n\n