=== Ziba AI Content Creator ===
Contributors: siteziba
Tags: ai, content generator, auto post, openrouter, persian, multilingual
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 2.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Automatically generate SEO-optimized Persian and English articles with AI, featuring unique images, watermarks, and internal linking.

== Description ==

**Ziba AI Content Creator** is a powerful plugin for automatically generating SEO-optimized content using AI, with first-class support for Persian (Farsi) and English.

**IMPORTANT: This plugin uses third-party services (OpenRouter and Pollinations.AI). Please read the External Services section below.**

= Key Features =

* Automatic article generation via OpenRouter AI
* Full Persian (Farsi) and English support with RTL-aware image text rendering
* Support for multiple API keys with automatic rotation on rate limits
* Featured image generation via Pollinations.AI with local GD fallback
* Automatic watermark with site URL
* Custom logo overlay on generated images
* AI-powered internal linking
* Yoast SEO and Rank Math compatibility
* Flexible scheduling: hourly, every 2/6/12 hours, daily, weekly, or custom intervals
* Real-time logs during execution
* Full RTL Persian admin interface

== External Services ==

This plugin connects to the following third-party services:

= OpenRouter (https://openrouter.ai) =

* **Purpose:** Sending prompts to AI models for article generation.
* **Data sent:** Your prompt text (article topic and site context) and your API key.
* **When:** Every time an article is generated (manual or scheduled).
* **Terms:** https://openrouter.ai/terms
* **Privacy:** https://openrouter.ai/privacy

= Pollinations.AI (https://pollinations.ai) =

* **Purpose:** Generating featured images from text prompts.
* **Data sent:** The image prompt (title-based keywords).
* **When:** Every time an article with image generation is published.
* **Terms:** https://pollinations.ai

Both services are optional and can be disabled in the plugin settings. If disabled, the plugin can use a local GD-based image generator that does not transmit any data.

== Requirements ==

* WordPress 5.8+
* PHP 7.4+
* Free API key from [OpenRouter](https://openrouter.ai)
* GD Library (usually enabled by default)

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/`
2. Activate the plugin through the Plugins menu
3. Go to **Ziba AI → Settings**
4. Enter your OpenRouter API key
5. Save and use the "Generate Article" button

== Frequently Asked Questions ==

= Do I need an API key? =

Yes. You need at least one free API key from OpenRouter.

= Can I use multiple API keys? =

Yes. The plugin supports multiple keys and rotates automatically on rate limits.

= How do I schedule automatic generation? =

Go to Settings → Schedule and choose a frequency (hourly, every 2/6/12 hours, daily, weekly, or custom interval). For daily/weekly you can also pick the exact time and weekday. Note that WP-Cron requires site traffic to trigger; for reliable scheduling, set up a real server cron to hit `wp-cron.php`.

= Is the plugin multilingual? =

Yes, it ships with English and Persian (Farsi) translations. Additional translations can be added via the `/languages/` folder.

= Is it compatible with Yoast SEO and Rank Math? =

Yes. The plugin automatically syncs SEO metadata with both.

== Screenshots ==

1. Main plugin page with real-time logs
2. Settings page with API key management
3. Topic management (manual and AI-generated)
4. Schedule settings with flexible intervals
5. Sample generated article with featured image

== Changelog ==

= 2.1.0 =
* Renamed to "Ziba AI Content Creator"
* Full i18n support (English + Persian)
* Fixed cron scheduling and added flexible intervals
* Admin can trigger a scheduled run manually
* Removed testing files
* readme improvements

= 2.0.0 =
* Complete rewrite
* Security improvements
* Unified logger
* Enhanced image generator

= 1.0.0 =
* Initial release