=== Zedgad ===
Contributors: beneyjoy
Tags: social media, publishing, automation, webhook, api
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Send newly published WordPress posts to Zedgad for social publishing automation.

== Description ==

Zedgad connects WordPress publishing to your Zedgad project. When a post is published for the first time, the plugin sends the selected post fields to the Zedgad webhook endpoint using your project API key.

The webhook endpoint is configured automatically:

https://api.zedgad.com/api/webhooks/content/

You only need to paste your Zedgad project API key and choose which fields to send.

Supported fields:

* Title
* Summary
* Post URL
* Featured image

The plugin avoids duplicate webhook requests when an already-published post is edited.

= External service disclosure =

This plugin connects to the Zedgad service at `api.zedgad.com`. When a WordPress post is first published, the plugin may send the selected post fields, the WordPress post ID, and event metadata to Zedgad. The request includes your Zedgad project API key in the `Authorization` header.

You must have a Zedgad account and project API key to use this plugin.

Service website: https://zedgad.com

Privacy policy: https://zedgad.com/privacy

Terms of service: https://zedgad.com/terms

= Included assets =

The preview images included with this plugin are distributed under the same GPLv2-or-later license as the plugin.

== Installation ==

1. Upload the `zedgad` folder to `/wp-content/plugins/`, or install the plugin zip from the WordPress admin plugin uploader.
2. Activate **Zedgad** from the Plugins screen.
3. Open the **Zedgad** menu in WordPress admin.
4. Paste your Zedgad project API key.
5. Choose the fields to send.
6. Save the settings.

To create an API key, sign in to Zedgad, open a project, then create a project API key from the Integration or Settings area.

== Frequently Asked Questions ==

= Do I need to enter a webhook URL? =

No. The plugin uses the official Zedgad webhook endpoint automatically.

= When does the plugin send data? =

The plugin sends data only when a WordPress post is published for the first time.

= Will editing a published post send another webhook request? =

No. The plugin does not send duplicate webhook requests when an already-published post is edited.

= Where do I get my API key? =

Create a project API key inside your Zedgad dashboard. Open your project, go to Integration or Settings, create a key, copy it once, then paste it into the plugin settings page.

= What data is sent? =

Only the fields selected in the plugin settings are sent, along with the event name, source, and WordPress post ID.

== Screenshots ==

1. Zedgad settings screen where users add their API key and select fields.
2. Example output when only the post title is selected.
3. Example output when the title and post URL are selected.
4. Example output when the title, summary, post URL, and featured image are selected.

== Changelog ==

= 1.0.1 =

* Maintenance release.

= 1.0.0 =

* Initial release.
* Add top-level Zedgad admin menu.
* Add project API key setting.
* Add selectable post fields.
* Send first-publish webhooks to Zedgad.
* Prevent duplicate sends when published posts are edited.
