WP Manifestindependent plugin directory
manifest / integrations / new-post-webhook

New Post Webhook

Sends a webhook request when a new post is published

★ 3stars
96composer installs

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/wedevsofficial/new-post-webhook/archive/refs/heads/master.zip

On Packagist as wedevs/new-post-webhook:

composer require wedevs/new-post-webhook
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

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