Skip to content

weDevsOfficial/new-post-webhook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

New Post Webhook

Sends a webhook request when a new post is published.

Instructions

  • 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.

Installing with composer

composer require wedevs/new-post-webhook

Request Format

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"
  }
}

About

Sends a webhook request when a new post is published

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages