=== Webhook Auto-Post on Publish ===
Contributors: snehalpancholi
Tags: webhook, automation, publish, post notification, REST
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
Stable tag: 1.0.0
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Automatically POSTs a structured JSON or form payload to one or more webhook URLs whenever a post is published.

== Description ==

Connect your WordPress site to Zapier, Make, Slack, Discord, n8n, or any custom endpoint by registering webhook URLs. Each time a post goes live, the plugin fires an HTTP POST with full post metadata so you can trigger automated workflows.

**Features:**
* Multiple webhook URLs (one per line)
* JSON or form-encoded payload format
* HMAC-SHA256 signature header for request verification
* Configurable post types (posts, pages, custom post types)
* Optional "fire on update" mode for already-published posts
* Delivery log with status codes (last 200 entries)
* Clear log button

**Payload fields:** `id`, `title`, `url`, `excerpt`, `author`, `date`, `categories`, `tags`, `featured_image`, `status`, `site_url`

== Installation ==

1. Upload the `webhook-auto-post` folder to `/wp-content/plugins/`.
2. Activate the plugin.
3. Go to **Settings → Webhook Auto-Post** and enter your webhook URL(s).
4. Publish a post and check the Delivery Log.

== Frequently Asked Questions ==

= How do I integrate with Zapier? =
Create a Zapier "Catch Hook" trigger and paste the generated URL into the Webhook URLs field.

= How does request verification work? =
If you set a Secret Key, each request includes an `X-Webhook-Signature` header of the form `sha256=<hmac>`. Compute `HMAC-SHA256(secret, raw_body)` on your endpoint and compare to verify the request came from your site.

= Can I fire the webhook when I update a published post? =
Yes. Enable **Also Fire on Update** in the settings.

== Changelog ==

= 1.0.0 =
* Initial release.
