=== Wyrote Publisher ===
Contributors: wyrote
Tags: seo, content, ai, publishing, wyrote
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Publish AI-generated SEO content from Wyrote directly to your WordPress site.

== Description ==

Wyrote Publisher connects your WordPress site to Wyrote's AI content platform. Receive publish-ready articles via webhook and post them automatically — with featured images, categories, tags, and full SEO meta.

**Features:**

* Webhook-based content delivery — articles arrive automatically
* Idempotent post creation — same article won't create duplicates
* Featured image downloading and media library integration
* Yoast SEO and RankMath meta population (title, description, focus keyword)
* JSON-LD structured data injection
* Automatic category and tag management
* Activity logging with detailed request history

**How it works:**

1. You create content in Wyrote
2. Wyrote sends a webhook to your WordPress site
3. The plugin creates the post with all SEO settings applied

== Installation ==

1. Upload the `wyrote-publisher` folder to `/wp-content/plugins/`
2. Activate the plugin through the Plugins menu
3. Go to Settings > Wyrote Publisher
4. Copy your Webhook URL and paste it into your Wyrote integration settings
5. Paste the Webhook Secret generated by Wyrote into the plugin settings

== Frequently Asked Questions ==

= What SEO plugins are supported? =

Wyrote Publisher supports Yoast SEO and RankMath. It auto-detects which plugin is active and populates the corresponding meta fields.

= Will it create duplicate posts? =

No. Each article has a unique ID from Wyrote. If the same article is sent again, the existing post is updated instead of creating a duplicate.

= What happens if I deactivate the plugin? =

Your posts and all data are preserved. Reactivating the plugin restores full functionality.

= What happens if I uninstall the plugin? =

All plugin settings, activity logs, and Wyrote-specific post meta will be removed. Your posts themselves remain intact.

== Screenshots ==

1. Settings page — configure webhook secret, publishing defaults, and feature toggles
2. Activity log — monitor incoming webhooks and publishing results

== Changelog ==

= 1.0.0 =
* Initial release
* Webhook endpoint for receiving articles
* Post creation and update with idempotency
* Featured image downloading
* Yoast SEO and RankMath support
* JSON-LD structured data injection
* Admin settings page with activity log
