wedevs/new-post-webhook

当发布新文章时发送webhook请求

安装: 73

依赖项: 0

建议者: 0

安全性: 0

星标: 3

关注者: 3

分支: 0

开放问题: 0

类型:wordpress-plugin

dev-master 2022-08-05 09:43 UTC

This package is auto-updated.

Last update: 2024-09-05 13:59:42 UTC


README

当发布新文章时发送webhook请求。

说明

  • 激活插件
  • 导航到 设置 > 写作 设置并添加webhook URL。
  • 当创建新文章时,它将向该URL发送webhook。

使用composer安装

composer require wedevs/new-post-webhook

请求格式

以下格式将在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"
  }
}