=== Expert AI Auto Blogger ===
Contributors: digitalknockers
Tags: ai, gemini, google gemini, auto blog, seo, content generator, scheduler
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
Stable tag: 1.2.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Production-ready automated blog generation, 5+ topic ideation per keyword, 3-stage humanizer pipeline, keyword queueing, and multi-tier publishing system powered by Google Gemini, Claude, Groq, and OpenRouter AI.

== Description ==

Expert AI Auto Blogger connects your WordPress website directly with Google Gemini, Anthropic Claude, Groq, and OpenRouter AI to generate high-ranking, humanized long-form blog articles (1,500 - 3,500+ words), complete with SEO metadata, structured FAQs, internal links, responsive gallery images, author boxes, CTA conversion boxes, and an automated publishing calendar engine.

= Core Capabilities =
* **5+ AI Topic Ideas per Keyword**: Automatically generates at least 5 distinct, high-impact blog topics for every keyword, allowing inline editing and sequential queue execution.
* **3-Stage Humanizer Pipeline**: Sanitization, stylistic transformation, and linguistic forensic auditing to eliminate AI detection patterns and structural fluff.
* **Official Multi-Provider Support**: Official Google Gemini API (including free tier in Google AI Studio), Anthropic Claude, Groq Cloud (Llama 3.3 70B), OpenRouter, and custom OpenAI-compatible endpoints.
* **Strict Headline & YMYL Excellence**: Enforces promised headline counts, authentic practitioner case studies, and local statutory entity density (e.g. CQC, GMC, SRA).
* **Publishing Control**: Configure posts per day, custom daily targets, disabled weekdays, and randomized publishing windows.
* **Database-Backed Queue Worker**: Reliable async processing with exponential backoff and transient concurrency locks.
* **Internal Linking Engine**: Contextually scans your existing WordPress articles and naturally embeds relevant internal links.
* **Publishing Calendar**: Visual Month, Week, and Day views to inspect and reschedule future articles.
* **SEO Compatibility**: Native integration with Yoast SEO, Rank Math, and All in One SEO metadata.
* **Envato License & Auto-Updates**: One-click background updates with domain activation management and a 14-day offline grace period.

== Installation ==

1. Upload the `gemini-ai-auto-blog.zip` file via **Plugins -> Add New -> Upload Plugin**.
2. Activate the plugin through the **Plugins** screen in WordPress.
3. Navigate to **Expert Auto Blogger -> Settings -> License & Updates** to enter your Envato Market purchase code.
4. Follow the Setup Wizard or configure your AI Provider API key under **Settings -> API & Models**.

== Frequently Asked Questions ==

= Where do I find my Envato purchase code? =
Go to your Envato Market Downloads page (https://codecanyon.net/downloads), locate "Expert AI Auto Blogger", click "Download", and select "License certificate & purchase code (PDF or text)".

= Does this plugin work on staging or localhost sites? =
Yes. Staging and development environments (such as localhost, 127.0.0.1, staging.*, dev.*, test.*, *.local) are automatically allowed and do not consume your production license quota.

= What happens if the licensing server is temporarily offline? =
Your automated blog generation and cron schedules will never shut down. The plugin engages an automatic 14-day offline grace period with a non-intrusive status notice.

== External Services & Privacy Policy ==

This plugin transmits data to third-party APIs solely to perform content generation, image sideloading, plagiarism checks, and license verification. No personal visitor data, passwords, or customer records are ever tracked or sent externally.

* **Google Gemini API (Google LLC)**: Transmits keywords and content prompts to generate blog posts. Subject to the Google Terms of Service: https://policies.google.com/terms
* **Anthropic Claude API (Anthropic PBC)**: Transmits keywords and content prompts when Claude provider is selected. Subject to Anthropic Terms: https://www.anthropic.com/terms
* **Groq Cloud (Groq Inc.) / OpenRouter**: Transmits prompts for open-source model inference. Subject to respective privacy policies: https://groq.com/privacy/ and https://openrouter.ai/privacy
* **Unsplash API (Unsplash Inc.)**: Transmits target keyword to search for royalty-free featured images. Subject to Unsplash Terms: https://unsplash.com/terms
* **DuckDuckGo / RapidAPI**: Transmits 9-word sentence shingles to scan for web duplicate matches during plagiarism checks.
* **Digital Knockers Licensing Gateway**: Transmits the buyer's purchase code, site domain, and plugin version to verify authentic licenses and check for plugin updates.

== Changelog ==

= 1.2.0 =
* Commercial release preparation for Envato Market (CodeCanyon).
* Added comprehensive License Management system with purchase code verification and domain registration.
* Added native WordPress Auto-Update client (`GAB_Updater`) with token-gated package downloads.
* Implemented 14-day offline grace period ensuring zero downtime for customers during network outages.
* Implemented AES-256-CBC at-rest encryption for API keys and sensitive tokens.
* Fixed CSRF nonce bypass in AJAX verification.
* Added SSRF protection for remote media imports.
* Replaced direct file system operations with WordPress `wp_upload_bits()` and `wp_delete_file()`.
* Enhanced YMYL & E-E-A-T entity density, CQC agency CTA contact boxes, and strict headline count contracts.

= 1.1.0 =
* Added 5+ topic ideas generation per keyword with inline editing, deleting, and single-click enqueueing.
* Added Automatic and Manual topic execution modes in the queue worker.
* Added E-E-A-T Author detailed section and dual CTA conversion buttons.
* Renamed plugin to "Expert AI Auto Blogger".

= 1.0.0 =
* Initial release on WordPress.
