=== Recontent AI – Smart Content Updates ===
Contributors: parmarpooja
Tags: ai, content, editor, gutenberg, connectors
Requires at least: 7.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Rewrite post and page content using AI providers connected via WordPress Connectors.

== Description ==

Recontent AI adds an **AI Rewrite** panel to the block editor so you can improve posts and pages with AI — using the same API keys you configure under **Settings → Connectors**.

**Features**

* Block editor sidebar with custom rewrite instructions
* Preview AI output before applying it to the editor
* One-click rewrite and save to the database
* Support for any connected `ai_provider` connector (OpenAI, Anthropic, Google, and others)
* REST API endpoint for integrations
* Abilities API registration for agent-style workflows

**Requirements**

* WordPress 7.0 or higher
* An active AI provider plugin (for example, AI Provider for OpenAI)
* A valid API key configured under **Settings → Connectors**

This plugin does not include an AI provider. It uses the WordPress AI Client and Connectors APIs.

== Installation ==

1. Upload the `recontent-ai` folder to `/wp-content/plugins/`, or install the plugin through the WordPress Plugins screen.
2. Activate the plugin through the **Plugins** menu in WordPress.
3. Install and activate an AI provider plugin, then add your API key under **Settings → Connectors**.
4. Edit a post or page, open the editor menu (⋮), and choose **AI Rewrite**.

== Frequently Asked Questions ==

= Does this plugin provide an AI API key? =

No. You must install an AI provider plugin and configure your API key under **Settings → Connectors**.

= Which post types are supported? =

By default, posts and pages are supported. Developers can filter supported types with `recontent_ai_post_types`.

= Is post content sent to a third party? =

Yes. When you run a rewrite, your post content and instructions are sent to the AI provider you configured (for example, OpenAI). Review your provider’s terms and privacy policy.

= Does this work with the classic editor? =

The AI Rewrite panel is available in the block editor. A quick link on the posts list opens the block editor sidebar.

== Screenshots ==

1. AI Rewrite panel in the block editor sidebar.
2. Generate preview before applying changes.

== Changelog ==

= 1.0.0 =
* Initial WordPress.org release.
* Add AI-powered content rewriting for posts and pages.
* Support WordPress AI Client and Connectors APIs.
* Add block editor sidebar integration.
* Add REST API endpoints and Abilities API support.
* Add provider status detection and rewrite preview support.
* Add activation checks and WordPress coding standards compliance.

== Upgrade Notice ==

= 1.0.0 =
Initial public release of Recontent AI.

== Privacy ==

When a user initiates an AI rewrite, this plugin sends the post content and rewrite instructions to the configured third-party AI provider via the WordPress AI Client. No data is sent until a user explicitly triggers a rewrite. API keys are stored using WordPress Connectors settings, not by this plugin.