Linux 软件免费装
Banner图

Yak Event Hooks

开发者 oliverdj123
更新时间 2026年9月20日 00:34
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

post automation workflow webhook n8n

下载

1.2.0 1.3.0

详情介绍:

Stop hand-copying data between WordPress and your automation tools. Yak Event Hooks fires a webhook whenever an event happens on your site, carrying a clean JSON payload with everything your workflow needs — no API keys, no accounts, no third-party servers. Developed by YakWP. See the plugin homepage for documentation and downloads. Point it at any endpoint that accepts a JSON POST — n8n, Zapier, Make, IFTTT, your own server, or a cloud automation — and instantly start workflows on: Posts { "event": "publish", "post_id": 42, "title": "How to automate WordPress", "slug": "automate-wordpress", "url": "https://example.com/automate-wordpress", "post_type": "post", "status": "publish", "old_status": "draft", "new_status": "publish", "author": "Oliver", "categories": ["Automation"], "tags": ["webhook"], "timestamp": "2026-09-05 12:00:00" } Your webhook URL is all it needs. Each event is toggleable, so you only send what you want. Two things worth knowing Requests never hold up your site. Payloads are queued and sent after the page response has been handed to the visitor, so a slow or unreachable endpoint cannot stall an editor save. On hosts with a request-finish function (PHP-FPM, LiteSpeed) the plugin still records the real HTTP status. On other hosts the send is fire-and-forget and the log says so honestly. You can prove a payload came from your site. Add a shared secret and every request carries an HMAC-SHA256 signature of the raw body plus a timestamp: X-Yak-Signature: sha256=<hmac_sha256(timestamp + "." + raw_body, secret)> X-Yak-Timestamp: 1789813016 X-Yak-Delivery: 4f1c...-uuid X-Yak-Site: https://example.com/ Sign the timestamp with the body and reject anything older than a few minutes — that kills replay attacks. Verify with a constant-time comparison before you parse the JSON. Each site should carry its own secret: one shared key across many sites means one compromised site can forge events for all of them. Is the event list enough to tell a real publish from a scheduled one? Every post status transition carries both sides of the change (old_status and new_status), so a workflow can tell a brand-new post from a scheduled post flipping over (future → publish), or a draft being published. Comment status events carry the same pair. Made by YakWP Developed and maintained by YakWP. YakWP also makes a free AI chatbot plugin for WordPress that answers your visitors' questions right on your site — pair it with Yak Event Hooks so your site not only fires workflows but also talks to every visitor automatically. Features Privacy No data ever leaves your site except the JSON payload you asked us to send to your own webhook URL. There are no analytics, no tracking, and no third-party requests.

安装:

  1. Upload the yak-event-hooks folder to /wp-content/plugins/ or install via Plugins → Add New.
  2. Activate the plugin.
  3. Go to Settings → Yak Event Hooks.
  4. In n8n (or your automation tool), add a Webhook node, enable it, and copy the full URL.
  5. Paste the URL into the plugin, tick the events you want, and save.
  6. Use the Send Test Payload Now button to confirm the connection.

常见问题:

Do I need an API key or account?

No. You only need the webhook URL of your own endpoint.

Does it only work with n8n?

No. It works with any endpoint that accepts a JSON POST — n8n, Zapier, Make, IFTTT, webhooks.dev, or your own server.

Which events are supported?

Post published, updated, trashed, and permanently deleted; comment added, comment status changed, comment deleted; media (attachment) uploaded; and new user registered. Every event is toggleable.

Which WordPress versions are supported?

WordPress 5.0 and later, including the latest releases. PHP 7.4 or higher.

Does sending a webhook slow down my editor?

No. Events are queued during the request and delivered on shutdown, after the response has gone out. In the default background mode a stalled endpoint costs your editors nothing. If you need the delivered HTTP status inline (debugging a broken endpoint), switch Delivery to synchronous — that is the old behaviour.

How does the receiver verify a payload really came from my site?

Set a shared secret of 16+ characters and the request carries X-Yak-Signature: sha256=HMAC-SHA256(timestamp + "." + raw body). Compute the same HMAC over the exact raw bytes you received (do not re-serialize the JSON — key order and escaping will differ), compare with a constant-time function, and reject timestamps that are not recent. Use a different secret per site.

Can I clear the secret through the REST API?

GET /wp-json/yak-event-hooks/v1/settings never returns the secret. A PUT with an empty secret leaves the stored one untouched; send clear_secret: true to actually remove it.

更新日志:

1.3.0 1.2.0 1.1.0 1.0.3 1.0.2 1.0.1 1.0.0