=== Craftify AI Content Publisher ===
Contributors: craftifyai
Tags: publishing, blog, content, ai, automation
Requires at least: 5.0
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.0.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Publish blog posts directly from Craftify AI to your WordPress site.

== Description ==

The Craftify AI WordPress plugin enables seamless integration between your Craftify AI account and your WordPress website. Once connected, you can publish blog posts directly from Craftify AI's content creation platform to your WordPress site with just a few clicks.

= Features =

* **Direct Publishing**: Publish blog posts from Craftify AI directly to WordPress
* **Featured Images**: Automatically download and set featured images
* **SEO Integration**: Supports Yoast SEO, RankMath, and All in One SEO
* **Categories & Tags**: Automatically creates and assigns categories and tags
* **Flexible Post Status**: Choose to publish as draft, pending review, or published
* **Default Author**: Set a default author for all Craftify AI posts

= Third-Party Service =

This plugin connects to the Craftify AI service (https://www.craftify.ai) to enable publishing content from Craftify AI to your WordPress site.

**Data Transmitted:**

* Your site URL and name (for identification in Craftify AI)
* The webhook URL where Craftify AI will send publish requests

**When Data is Sent:**

* When you save your API key settings, your site registers with Craftify AI
* When you verify your API key connection

**Service Links:**

* [Craftify AI Website](https://www.craftify.ai)
* [Terms of Service](https://www.craftify.ai/terms)
* [Privacy Policy](https://www.craftify.ai/privacy)

== Installation ==

= From WordPress Admin =

1. Download the plugin zip file
2. Go to **Plugins > Add New** in your WordPress admin
3. Click **Upload Plugin**
4. Choose the downloaded zip file and click **Install Now**
5. Activate the plugin

= Manual Installation =

1. Download and extract the plugin files
2. Upload the `craftify-ai` folder to `/wp-content/plugins/`
3. Activate the plugin through the **Plugins** menu in WordPress

== Configuration ==

1. Go to **Settings > Craftify AI** in your WordPress admin
2. Log in to your Craftify AI account at https://www.craftify.ai
3. Navigate to **Settings > Integrations** and click **Connect** on WordPress
4. Copy the generated API key
5. Paste the API key in the WordPress plugin settings
6. Configure your preferred settings:
   * **Site Name**: The name displayed in Craftify AI (defaults to your site name)
   * **Default Post Status**: Draft, Pending Review, or Published
   * **Default Author**: The author assigned to new posts
7. Click **Save Settings**

== Frequently Asked Questions ==

= How do I get an API key? =

Log in to your Craftify AI account, go to Settings > Integrations, and click Connect on the WordPress integration card. Your API key will be displayed.

= Can I publish to multiple WordPress sites? =

Yes! Each WordPress site needs its own installation of the plugin with its own API key. In Craftify AI, you'll see all connected sites when publishing.

= What post status options are available? =

You can choose from:
* **Draft**: Posts are saved as drafts for review
* **Pending Review**: Posts are submitted for review
* **Published**: Posts are published immediately

= Does this work with Gutenberg? =

Yes, the plugin is compatible with both the Classic Editor and Gutenberg (Block Editor).

= What SEO plugins are supported? =

The plugin supports Yoast SEO, RankMath, and All in One SEO. SEO title and description from Craftify AI will be automatically set if you have one of these plugins installed.

== Screenshots ==

1. Settings page showing connection configuration
2. Connection status indicator

== Changelog ==

= 1.0.2 =
* Fixed deprecated 'who' parameter in wp_dropdown_users, now uses 'capability' (WordPress 5.9+)

= 1.0.1 =
* Fixed text domain to match plugin slug
* Code quality improvements for WordPress.org compliance

= 1.0.0 =
* Initial release
* Direct blog post publishing from Craftify AI
* Featured image support
* SEO plugin integration (Yoast, RankMath, All in One SEO)
* Categories and tags support
* Configurable default post status and author

== Upgrade Notice ==

= 1.0.2 =
Fixed deprecation warning for WordPress 5.9+ compatibility.

= 1.0.1 =
Text domain fix for WordPress.org compliance.

= 1.0.0 =
Initial release of Craftify AI WordPress plugin.
