=== CodeAtoZ AI Readiness for WooCommerce ===
Contributors: codeatoz
Tags: woocommerce, ai, llms, seo, chatgpt
Requires at least: 6.2
Tested up to: 7.0
Requires PHP: 8.0
WC requires at least: 8.2
Stable tag: 1.1.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Make your WooCommerce store discoverable by AI-powered search engines and assistants.

== Description ==

CodeAtoZ AI Readiness for WooCommerce helps WooCommerce store owners optimize their products for AI-powered search engines like ChatGPT, Google Gemini, Microsoft Copilot, and Perplexity.

Generate llms.txt, improve AI discoverability scores, export structured product feeds, and monitor AI bot traffic — all without using external APIs.

= Why AgentReady? =

AI agents are becoming the new search engines. Traditional SEO alone is no longer enough.

AgentReady ensures your WooCommerce store is:
* Readable by AI models
* Structured for LLM understanding
* Discoverable in AI-generated answers
* Optimized for future AI commerce trends

= What it does =

= Core Features =
* AI Readiness Score for WooCommerce products with actionable issue tips
* llms.txt generator with SEO plugin sync (Yoast, RankMath, AIOSEO)
* ai.txt endpoint for broader AI crawler compatibility
* llms-full.txt — full untruncated product catalog for deep AI context

= Advanced Features =
* Auto-Scheduler — cron-based re-scan and llms.txt regeneration
* Bot Traffic Dashboard — detect GPTBot, ClaudeBot, PerplexityBot and more
* Email Digest — weekly HTML score summary via wp_mail
* Bulk Fix — group products by issue type for fast batch fixing

= Developer / Technical Features =
* Schema / JSON-LD auto-injection on product pages
* Product Feed Export — JSON (OpenAI spec) and CSV formats
* robots.txt AI Manager — allow or block individual AI crawlers
* Multi-language llms.txt for WPML and Polylang
* Knowledge Base editor with 10 pre-built Q&A prompts

= File Explanations =
* llms.txt — structured summary for AI models
* llms-full.txt — complete product catalog for deep AI context
* ai.txt — alternative endpoint for AI crawler compatibility

= Who is this plugin for? =

* WooCommerce store owners
* SEO professionals
* Developers building AI-ready stores
* Agencies managing eCommerce clients

Increase your chances of being featured in AI-generated answers and product recommendations.

== Installation ==

1. Upload the `agentready` folder to `/wp-content/plugins/`.
2. Activate the plugin via **Plugins → Installed Plugins**.
3. Go to **CodeAtoZ AI Readiness for WooCommerce** in your WP admin.
4. Run your first scan and generate llms.txt.

== Frequently Asked Questions ==

= Do you call external AI APIs? =

No. CodeAtoZ AI Readiness for WooCommerce does not make AI API calls from your WordPress server.

= Does this plugin collect any user data? =

No. CodeAtoZ AI Readiness for WooCommerce only reads your WooCommerce product data and stores scores locally in your database. No data is sent externally.

= Is this plugin beginner friendly? =

Yes. The plugin includes guided steps, issue tips, and automation features to help both beginners and advanced users.

== Screenshots ==

1. AI Readiness Dashboard — overview of store score and trends
2. Product Score Breakdown — detailed per-product issues
3. Knowledge Base Builder — create AI-friendly Q&A content
4. Channel Submission Guides — ChatGPT, Gemini, Copilot, Perplexity
5. Bot Traffic Dashboard — track AI crawler visits
6. llms.txt Generator — preview and manage output

== Support ==

Need help or have a feature request?

Start a discussion:
https://codeatoz.com/contact/

Or email us directly:
hello@codeatoz.com

We typically respond within 24 hours. :contentReference[oaicite:1]{index=1}

== Changelog ==

= 1.1.4 =
* New: Declared WooCommerce HPOS (High-Performance Order Storage) compatibility.
* Fix: Hardened JSON-LD schema output with JSON_HEX_TAG/AMP/APOS/QUOT flags to prevent script-tag breakout from product content.
* Fix: Wrapped preg_replace() results in (string) cast to avoid PHP 8.1+ trim(null) deprecation in llms.txt generator.
* Compat: Tested with WordPress 7.0 ("Armstrong").
* Compat: Bumped WC requires at least to 8.2 (minimum version with FeaturesUtil API).

= 1.1.3 =
* Fix: Added Requires Plugins header for WooCommerce dependency.
* Fix: Updated text domain to match plugin slug (codeatoz-ai-readiness-woocommerce).
* Fix: Removed JSON encoding flags that bypassed output escaping in feed exporter and schema output.
* Fix: Updated Chart.js from 4.5.0 to 4.5.1.

= 1.1.2 =
* Fix: Renamed plugin to "CodeAtoZ AI Readiness for WooCommerce" per WordPress.org guidelines.
* Fix: Sanitized all JSON POST inputs at point of receipt using sanitize_text_field().
* Fix: Removed phpcs:disable suppression comments from AJAX handlers.
* Fix: Updated Chart.js from 4.4.3 to 4.5.0.

= 1.1.1 =
* Fix: Plugin Check — correct $wpdb->prepare() usage for product list IN() query (sanitized ID list + %i table placeholder)
* Fix: Plugin Check — use %i for custom table in scanner, digest, and related queries
* Fix: Plugin Check — wp_unslash + sanitize for HTTP_USER_AGENT in bot tracker
* Fix: PHPCS — nonce verification notes for read-only $_GET parameters (score + channels screens)

= 1.1.0 =
* New: Auto-Scheduler — automatically re-scan products and regenerate llms.txt
* New: Bot Traffic Dashboard — detect GPTBot, ClaudeBot, PerplexityBot, and more
* New: Schema / JSON-LD — auto-inject structured data on product pages
* New: Product Feed Export — JSON (OpenAI spec) and CSV
* New: ai.txt — serve content for AI crawlers
* New: Email Digest — weekly AI readiness report
* New: Bulk Fix — group products by issue type
* New: SEO Plugin Sync — Yoast, RankMath, AIOSEO integration
* New: llms-full.txt — full product catalog output
* New: robots.txt AI Manager — control AI crawlers
* New: Score Trend Chart — 14-day tracking
* New: Multi-language support — WPML & Polylang
* Fix: Dashboard scan button behavior
* Fix: Menu position conflict resolved
* Fix: Secure SQL queries using $wpdb->prepare()
* Fix: Fonts self-hosted (removed external dependency)
* Fix: File handling via WP Filesystem API

= 1.0.0 =
* Initial release

== Upgrade Notice ==

= 1.1.4 =
WordPress 7.0 and WooCommerce HPOS compatibility update. Declares HPOS compatibility so WooCommerce stops flagging the plugin as incompatible. Includes a JSON-LD output hardening fix and PHP 8.1+ deprecation cleanup. No database migration required.

= 1.1.3 =
* Fix: Added Requires Plugins header for WooCommerce dependency.
* Fix: Updated text domain to match plugin slug (codeatoz-ai-readiness-woocommerce).
* Fix: Removed JSON encoding flags that bypassed output escaping in feed exporter and schema output.
* Fix: Updated Chart.js from 4.5.0 to 4.5.1.

= 1.1.2 =
Rename and compliance update. No database changes. Simply deactivate and reactivate if permalink issues occur.

= 1.1.1 =
Maintenance release for WordPress.org Plugin Check compliance (database prepares, input handling, admin GET screens). No database migration required.

= 1.1.0 =
Major feature update with 12+ new features including bot tracking, schema injection, and feed export.

After upgrading, you may need to re-save permalinks to enable ai.txt and llms-full.txt endpoints.

= 1.0.0 =
Initial release