=== Aomark Writer ===
Contributors: alex2703
Tags: publishing, api, rest-api, scheduling, headless
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.6.15
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Securely publish or schedule Aomark-generated content on your WordPress site.

== Description ==

Aomark Writer connects WordPress to the hosted [Aomark Writer service](https://aomark.io/seo-writer/). An Aomark account is required, and content generation may require a paid plan or article credits.

Create and review content in Aomark, then use this plugin to publish or schedule the approved content on your WordPress site. The plugin supports posts, categories, tags, featured images, Gutenberg or HTML content, scheduling, and Aomark-generated SEO metadata.

= Key Features =

* Site-specific authentication without WordPress application passwords
* Replay protection for publishing requests
* Immediate or scheduled publishing
* Featured-image sideloading and optional site-logo branding
* Category and tag assignment
* Gutenberg, HTML, and plain-text content
* Aomark-generated SEO title, description, FAQ, and JSON-LD metadata
* Pull-based publishing fallback for hosts that block inbound REST requests

= How It Works =

1. Install and activate the plugin.
2. Open Aomark Writer in WordPress, or Aomark Suite > Writer when Suite is active.
3. Choose "Connect to Aomark" and complete the secure connection in Aomark.
4. Create and approve content in Aomark.
5. Publish or schedule that content on the connected WordPress site.

== External Service ==

This plugin relies on the Aomark Writer service operated by Aomark Digital LLC at `https://app.aomark.io/`.

The plugin first contacts Aomark when a WordPress administrator chooses "Connect to Aomark". During connection it sends the site URL, product identifier, a temporary connection code, and a temporary device credential.

While the site remains connected, the plugin may contact Aomark to:

* show Writer plan and usage information;
* test or revoke the connection;
* check for Aomark publishing jobs approximately every 30 seconds through WP-Cron;
* retrieve Aomark-generated content approved for publishing; and
* report whether WordPress created or updated the requested post.

These requests can include the site URL, plugin and protocol versions, site ID and authentication token, temporary connection credentials, publishing job/request/lease identifiers, and the resulting WordPress post ID, status, and permalink. If publishing fails, a sanitized error code and message may be returned to Aomark.

The plugin does not upload locally authored WordPress post content to Aomark. It retrieves only content already created in the user's Aomark account for publishing.

When an approved publishing payload contains a remote featured image or branding image, WordPress downloads that image from the supplied URL. The remote image host receives a normal server request.

If an administrator submits the optional support form, WordPress emails `admin@aomark.io` with the administrator's email address, subject and message, WordPress/PHP/plugin versions, site and page URL, and UTC time. Nothing is sent through this form until the administrator submits it.

Service information: [Aomark Writer](https://aomark.io/seo-writer/)

Service dashboard: [Aomark App](https://app.aomark.io/)

Privacy Policy: [Aomark Privacy Policy](https://aomark.io/privacy-policy/)

Terms of Service: [Aomark Terms and Conditions](https://aomark.io/terms-and-conditions/)

== Privacy ==

The WordPress.org build contains no analytics or telemetry and does not contact Aomark merely because it is activated. An administrator must start the connection process before service requests begin.

The site ID and authentication token are stored in the WordPress options table while connected. Temporary connection and publishing state is stored in WordPress options or transients. Disconnecting removes the connection credentials and stops publishing pickup. Uninstalling removes the stored connection credentials and scheduled pickup event.

== Installation ==

1. In WordPress, go to Plugins > Add New Plugin.
2. Search for "Aomark Writer".
3. Choose "Install Now", then activate the plugin.
4. Open Aomark Writer and choose "Connect to Aomark".
5. Sign in to Aomark and confirm the site connection.

== Frequently Asked Questions ==

= Is an Aomark account required? =

Yes. This plugin is a connector for the hosted Aomark Writer service. An account is required, and content generation may require a paid plan or article credits.

= Does activation send data to Aomark? =

No. The plugin first contacts Aomark after a WordPress administrator starts the connection process.

= What happens if I disconnect? =

The stored site credentials are removed, publishing pickup stops, and Aomark can no longer publish to the site until it is connected again.

= Why not use WordPress application passwords? =

Aomark Writer uses purpose-built, site-specific authentication limited to its publishing workflow instead of a general WordPress application password.

= Does this work with WordPress Multisite? =

Yes, but each site in the network needs its own connection.

= What content formats are supported? =

The plugin supports serialized Gutenberg blocks, sanitized HTML, and plain text.

== Changelog ==

= 1.6.15 =

* Uses one official WordPress.org update channel for every installation source.
* Adds the shared Aomark admin menu icon for consistent product navigation.

= 1.6.14 =

* Uses the native WordPress.org update channel in the directory build.
* Documents the required Aomark service and every outbound data flow.
* Confirms script-safe JSON-LD encoding for stored schema and FAQ output.
* Aligns WordPress.org contributor, license, product URL, and installation metadata.

= 1.6.13 =

* Aligns installation and connection documentation with the current one-click authentication flow.
* Removes unused connector state and an obsolete manual-credential endpoint.

= 1.6.12 =

* Improves accessible support-form error handling.

== Upgrade Notice ==

= 1.6.15 =

Moves every installation source to the official WordPress.org update channel.

== Support ==

For support, visit [Aomark Support](https://aomark.io/support/).
