Sends a webhook request when a new post is published.
- Activate the plugin
- Navigate to Settings > Writing settings and add the webhook URL.
- It'll send the webhook to that URL when a new post is created.
composer require wedevs/new-post-webhook
The following format will be posted in the webhook.
{
"id": 823,
"title": "Post Test",
"url": "https://wp.test/post-test/",
"content": "\n<p>Hello There</p>\n",
"excerpt": "Hello There",
"tags": [
"one",
"two"
],
"categories": [
"Uncategorized"
],
"author": {
"name": "admin",
"url": "https://wp.test/author/admin/"
},
"date": {
"raw": "2022-08-03 17:06:22",
"formatted": "August 3, 2022"
}
}