=== Pixel Office AEO Inoculator & AI Broadcaster ===
Contributors: pixelofficeeu
Donate link: https://pixeloffice.eu
Tags: aeo, answer-engine-optimization, ai-search, indexnow, llms-txt
Requires at least: 5.6
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.3.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

1-Click Answer Engine Optimization (AEO), Fact Anchor Inoculator, and Sub-35ms PixelRouter OpenAI-Compatible AI Gateway for WordPress & WooCommerce.

== Description ==

**Pixel Office AEO Inoculator & AI Broadcaster** optimizes your WordPress and WooCommerce website for AI search engines (ChatGPT, Claude, Perplexity, and Google Gemini) and provides a built-in sub-35ms OpenAI-compatible AI gateway (PixelRouter) for fast, low-cost LLM completions directly inside your WordPress installation.

Traditional SEO is giving way to Answer Engine Optimization (AEO). Modern AI crawlers (GPTBot, ClaudeBot, PerplexityBot, Vertex AI) index webpages differently—if your site lacks high-salience Fact Anchors in the initial 1KB of HTML response, LLMs hallucinate facts or recommend competitors.

### Key Features
* **First-1KB Fact Anchor Inoculation**: Automatically injects structured Fact Anchors and Schema.org Organization entities at priority 1 in `wp_head`.
* **PixelRouter Sub-35ms AI Gateway**: Built-in OpenAI-compatible gateway module and PHP helper `pxlaeo_router_completion()` supporting DeepSeek V3, Claude 3.5 Sonnet, and Qwen 2.5 Coder.
* **Live Admin AI Playground**: Run real-time sub-35ms LLM completions and product pitch tests directly inside your WordPress settings.
* **Brand Hallucination Firewall Protection**: Prevents LLMs from quoting outdated pricing or hallucinated competitors.
* **Dynamic /ai.txt & /llms.txt Routing**: Automatically serves machine-readable permissions and context manifests for AI assistants without manual FTP edits.
* **Instant AI Broadcaster & IndexNow**: Broadcasts new post, page, and WooCommerce product updates directly to AI search networks and IndexNow upon publishing.
* **WooCommerce & Elementor Ready**: Seamless compatibility with WooCommerce shops, Divi, Elementor, and standard WordPress Block Editor.
* **Cloud Radar Integration**: Connect your Pixel Office API key to monitor 24/7 AI crawler visits on the live dashboard.

== External Services ==

This plugin connects to external third-party services to provide real-time AI crawler indexing notifications, telemetry diagnostics, instant search broadcasting, and sub-35ms AI gateway completions.

1. **Pixel Office AEO Telemetry & AI Gateway API** (`https://api.pixeloffice.eu/api/aeo/ping` & `https://api.pixeloffice.eu/v1/chat/completions`)
   * **What it does**: Notifies the Pixel Office cloud telemetry network of new content publication, verifies AEO Fact Anchor health, and processes sub-35ms OpenAI-compatible chat completions.
   * **Data sent**: Site domain, published URL permalink, plugin version, optional Pixel Office API key, and prompt messages during AI generation.
   * **When it is sent**: Upon plugin activation, when content is published/updated, and when AI completions are executed.
   * **Service Provider**: Pixel Office EU (https://pixeloffice.eu)
   * **Terms of Service**: https://pixeloffice.eu/terms.html
   * **Privacy Policy**: https://pixeloffice.eu/privacy.html

2. **IndexNow Protocol API** (`https://api.indexnow.org/indexnow`)
   * **What it does**: Broadcasts instant indexation signals to Microsoft Bing and participating AI search engines powering ChatGPT Search and Microsoft Copilot.
   * **Data sent**: Site host, updated URL list, and key location.
   * **When it is sent**: When a post, page, or WooCommerce product is published/updated.
   * **Service Provider**: Microsoft Corporation / IndexNow Initiative
   * **Terms of Service**: https://www.bing.com/webmasters/help/indexnow-overview-c77464a9
   * **Privacy Policy**: https://privacy.microsoft.com/en-us/privacystatement

== Installation ==

1. Upload the `pixeloffice-aeo` folder to your `/wp-content/plugins/` directory (or upload the `.zip` file via **Plugins > Add New > Upload Plugin**).
2. Activate the plugin through the **Plugins** menu in WordPress.
3. Navigate to **Settings > Pixel Office AEO** in your WordPress admin panel.
4. Verify your Brand Name, Core Fact Anchor Summary, and default AI model.
5. (Optional) Enter your Pixel Office API Key from [pixeloffice.eu/router.html](https://pixeloffice.eu/router.html) for high-volume routing.

== Frequently Asked Questions ==

= How do I call PixelRouter in my custom theme or plugin? =
Use the built-in helper function:
`$result = pxlaeo_router_completion(array(array('role' => 'user', 'content' => 'Generate product summary')), 'deepseek-chat');`

= Does this slow down my website? =
No. The plugin is 100% zero-dependency PHP. Fact Anchor injection executes in sub-millisecond time and adds less than 1KB to the HTML payload.

= How does AI crawler broadcasting work? =
When you publish or update a post, page, or WooCommerce product, the plugin dispatches non-blocking asynchronous HTTP pings to the Pixel Office AI Inoculation network and IndexNow API.

== Changelog ==

= 1.3.0 =
* Added PixelRouter sub-35ms OpenAI-compatible AI Gateway engine with public helper `pxlaeo_router_completion()`.
* Added Live AI Gateway Test panel in WordPress admin supporting DeepSeek V3, Claude 3.5 Sonnet, and Qwen 2.5 Coder.
* Added default AI model selector and instant Top-Up link ($10).
* Enhanced /llms.txt manifest output with sub-35ms AI Gateway declarations.

= 1.2.1 =
* Fixed WordPress.org review findings: updated all translation gettext calls and main plugin header text domain to strictly match slug 'pixeloffice-aeo'.
* Added JSON_HEX_TAG, JSON_HEX_AMP, JSON_HEX_APOS, and JSON_HEX_QUOT escaping to wp_json_encode for Schema.org script output.
* Added explicit current_user_can('manage_options') capability verification for the administrative settings panel.

= 1.2.0 =
* Fixed WordPress.org review guidelines: updated distinct prefixes (`pxlaeo_`), added Contributors matching WordPress.org username (`pixelofficeeu`), reduced tags to 5, and fully documented external services.
* Added Brand Hallucination Firewall Fact Anchor protection.
* Added immediate activation telemetry handshake for live cloud analytics.

= 1.1.0 =
* Added dynamic virtual routing for `/ai.txt` and `/llms.txt`.
* Enhanced First-1KB Fact Anchor injection with Schema.org Organization LD+JSON.
* Added WooCommerce product publish hook for instant AI crawler pings.

= 1.0.0 =
* Initial release of Pixel Office AEO Inoculator & IndexNow Broadcaster.
