=== Wordiva Article Publisher ===
Contributors: lijeeshms
Tags: ai, content, seo, publishing, blog
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 0.1.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connect WordPress to Wordiva and publish AI-generated articles locally without Application Passwords.

== Description ==

Wordiva links your site to your Wordiva account at [wordiva.ai](https://wordiva.ai).

This plugin:

* Connects via a secure device-code flow (no password paste)
* Shows a connect prompt in the post editor when not yet linked
* Pulls approved articles from Wordiva
* Publishes posts locally using native WordPress APIs
* Supports featured images, categories, tags, and JSON-LD

== External services ==

This plugin requires the Wordiva service at [wordiva.ai](https://wordiva.ai) to connect your site and sync approved articles for local publishing.

It communicates with `https://wordiva.ai/api/plugin/v1` in these cases:

* When you start or complete the device-code connection: site URL, site name, plugin version, and WordPress version are sent; device and refresh tokens are exchanged.
* On a schedule (and when you run sync manually): the plugin requests the publish queue and reports publish results (article id, local post id/URL, and success or error details).
* While connected: access tokens are refreshed as needed, and connection status may be checked.

No visitor or end-user browsing data is sent. Article generation, billing, and account management happen on wordiva.ai.

Service provider: Wordiva — [Terms of Service](https://wordiva.ai/terms), [Privacy Policy](https://wordiva.ai/privacy).

== Installation ==

1. Upload the plugin files or install from the WordPress plugins screen.
2. Activate the plugin.
3. Go to **Wordiva** in wp-admin and click **Connect Wordiva account**.
4. Approve the connection on wordiva.ai using the displayed code.

== Frequently Asked Questions ==

= Do I need a Wordiva account? =

Yes. Sign up at wordiva.ai and complete brand onboarding before connecting.

= Do I need an Application Password? =

No. The plugin publishes locally after pulling approved drafts from Wordiva.

== Screenshots ==

1. Animated overview of connecting WordPress to Wordiva and publishing approved articles.
2. Connect your WordPress site to Wordiva using the device-code flow.
3. View connection status, sync controls, and recent sync activity in wp-admin.
4. Published article on wordiva.ai after syncing from Wordiva.
5. Published article on summitcode.pro after syncing from Wordiva.

== Changelog ==

= 0.1.2 =
* Rename display name to Wordiva Article Publisher (slug unchanged).

= 0.1.1 =
* Enqueue admin CSS via wp_enqueue_style.
* Expand external service disclosure with Terms and Privacy links.
* Add WordPress.org contributors list alignment.

= 0.1.0 =
* Initial release: device-code connection, publish queue sync, local publishing.
