=== AddonLogic Slack Discord Webhook on Publish ===
Contributors: snehalpancholi
Tags: slack, discord, webhook, notifications, publish
Requires at least: 6.0
Tested up to: 6.7
Stable tag: 1.0.0
Requires PHP: 8.1
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Post a formatted message to Slack or Discord when content is published.

== Description ==

Every time a post (or custom post type) is published, this plugin fires a formatted message to one or more Slack or Discord incoming webhooks — instantly keeping your team informed.

**Features**

* Multiple webhooks — add as many Slack or Discord endpoints as needed.
* Per-webhook enable/disable toggle, label, and custom message template.
* Rich message format: Slack attachment or Discord embed with thumbnail.
* Template merge tags: {title} {url} {author} {excerpt} {date} {site_name} {site_url} {post_type} {categories}.
* Post type filter — trigger on posts, pages, custom types, or all.
* Error log in the settings page (last 50 errors).

== Installation ==

1. Upload the `slack-discord-webhook` folder to `/wp-content/plugins/`.
2. Activate via **Plugins → Installed Plugins**.
3. Go to **Settings → Slack / Discord Webhook**.
4. Add a webhook URL from your Slack or Discord app settings.
5. Publish a post to test.

== Frequently Asked Questions ==

= How do I get a Slack webhook URL? =
Create an incoming webhook in your Slack workspace at api.slack.com/apps, then copy the URL.

= How do I get a Discord webhook URL? =
Go to your Discord channel's settings → Integrations → Webhooks → New Webhook → copy the URL.

= Can I send to multiple channels? =
Yes — add one row per channel/server with its own URL.

== Changelog ==

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.0.0 =
Initial release.
