=== AI CMO Site Connector ===
Contributors: aicmo
Tags: ai, content marketing, editorial workflow, drafts, publishing
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.0.15
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connect WordPress to aiCMO, review planned topics, edit generated drafts, and manage publishing workflow from wp-admin.

== Description ==

AI CMO Site Connector links a WordPress site with aiCMO so operators can:

* connect a site to an aiCMO workspace
* review planned topics and generated drafts
* edit markdown drafts inside WordPress
* publish approved content from wp-admin
* manage Auto Publish workflow settings

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/` or install the zip through **Plugins > Add New**.
2. Activate **AI CMO Site Connector** in WordPress admin.
3. Open **AI CMO > Setup**.
4. Connect the site to your aiCMO account and continue onboarding.

== Frequently Asked Questions ==

= Does this plugin publish automatically? =

No. Automatic publishing only runs after you configure Auto Publish and explicitly enable it.

= Does this plugin require an aiCMO account? =

Yes. The plugin is designed to connect a WordPress site to an aiCMO workspace.

= Does this plugin use external services? =

Yes. This plugin connects to AI CMO services to authenticate the site, sync onboarding state, manage workflow data, generate drafts, and control Auto Publish.

It connects to these services:

* `https://aicmo.uk` for the public plugin connect flow and related website endpoints
* `https://cmo.so` for authentication and WordPress-compatible API endpoints
* `https://ai.cmo.so` for workspace, project, pricing, and account management links shown in the plugin UI

When you connect the plugin, it may send:

* your site URL and normalized domain
* the WordPress admin email used to start account connection
* workflow settings such as content plan edits, draft content, and Auto Publish configuration
* subscription and workspace binding requests needed to connect the current domain

These external requests only occur when the plugin is being connected, refreshed, or used to manage synced AI CMO content and publishing workflows.

Service terms and privacy policy:

* Terms: `https://aicmo.uk/terms`
* Privacy: `https://aicmo.uk/privacy`

== Changelog ==

= 1.0.15 =

* Published latest hosted beta package and frontend release metadata update.
* Cleans duplicate 1.0.14 archive entry and keeps latest package ordering stable.

= 1.0.14 =

* Fixed Setup checklist completion to use domain-level Auto Publish state.
* Fixed Drafts primary publish button label to use domain-level first publish milestone.
* Enforced bound-subscription ownership checks for plan switching and Auto Publish settings.

= 1.0.7 =

* Removed the custom hosted updater path for WordPress.org compatibility.
* Hardened admin redirects and plugin metadata for repository checks.
* Improved responsive behavior across Setup, Posts, Drafts, Auto Publish, and Pricing.

== Upgrade Notice ==

= 1.0.15 =

Refreshes hosted beta package metadata and archive consistency for frontend downloads.

= 1.0.14 =

Improves domain-level checklist/publish milestone behavior and enforces bound-subscription ownership controls.

= 1.0.7 =

Updates the admin workflow for WordPress.org compatibility and improves mobile responsiveness.
