=== citelayer® === Contributors: jyria Tags: ai, schema, seo, llm, visibility Requires at least: 6.4 Tested up to: 6.9 Requires PHP: 7.4 Stable tag: 1.2.1 License: GPL-2.0+ License URI: http://www.gnu.org/licenses/gpl-2.0.txt Make your WP site AI-ready. Generates llms.txt, optimizes Schema.org for LLMs, and enables UCP Discovery for AI agents. == Description == citelayer® makes your WordPress® site visible and accessible to AI agents like ChatGPT, Claude, Gemini, and Perplexity. **Features:** * **llms.txt Generation** - Automatic llms.txt file for LLM crawlers (similar to robots.txt) * **Schema.org Markup** - JSON-LD structured data optimized for AI consumption (Organization, WebSite, Article, Product) * **UCP Discovery** - Universal Commerce Protocol endpoint for AI agents (Free version: discovery only) * **Markdown for Agents** - Serves clean Markdown instead of HTML when AI agents request it (Content Negotiation via Accept header) * **Content-Signal Headers** - Configure content usage preferences (ai-train, search, ai-input) **Why citelayer®?** AI agents are becoming a primary way users discover content and products. citelayer® ensures your site is: * **Discoverable** - AI agents can find and understand your content * **Structured** - Clean, semantic data for better AI comprehension * **Efficient** - Markdown responses use 80% fewer tokens than HTML * **Privacy-Respecting** - Control how AI systems use your content via Content-Signal headers **WooCommerce Support** If you run WooCommerce, citelayer® automatically: * Includes product counts in llms.txt * Generates Product Schema.org markup * Shows UCP Discovery endpoint (full UCP support in Premium version) * Renders product pages as structured Markdown tables **Free vs. Premium** The free version provides essential AI visibility features. Premium adds: * Full UCP product browsing, cart, and checkout * AI Visibility Monitoring Dashboard * Advanced Schema.org markup (Reviews, FAQ, Shipping) * Product feed optimization tools [Learn more about Premium →](https://citelayer.ai/woocommerce-premium) == Installation == 1. Upload the plugin files to `/wp-content/plugins/citelayer/` or install via WordPress plugin installer 2. Activate the plugin through the 'Plugins' menu in WordPress 3. Go to Settings → citelayer® to configure options 4. Test your setup by visiting `/llms.txt` on your site == Frequently Asked Questions == = What is llms.txt? = llms.txt is a proposed standard (similar to robots.txt) that helps LLM crawlers understand your site structure. It provides AI agents with essential information about your content, products, and capabilities. = Does this plugin affect my SEO? = Yes, positively! The Schema.org markup improves how search engines understand your content. The plugin detects Yoast SEO and Rank Math to avoid duplicate schema output. = What is UCP (Universal Commerce Protocol)? = UCP is a new standard by Google and Shopify that lets AI agents browse products, add to cart, and checkout. The free version shows AI agents that your shop *could* support UCP. Full UCP implementation requires Premium. = Will this slow down my site? = No. All features use aggressive caching (24h for llms.txt, 7 days for Schema). Markdown generation adds ~5-15ms when AI agents request it (1ms when cached). = What are Content-Signal headers? = Content-Signal headers (contentsignals.org) let you control how AI systems use your content: * `ai-train` - Allow/deny use for training models * `search` - Allow/deny search indexing * `ai-input` - Allow/deny use for RAG/context Default: Training denied, search and RAG allowed. == Screenshots == 1. Settings page with all configuration options 2. Example llms.txt output 3. Schema.org markup in page source 4. Markdown response for AI agents == Changelog == = 1.2.1 = * Fixed WordPress.org deploy trigger (SVN deploy now runs in same workflow as auto-tag) * Added manual deploy fallback with dry-run support = 1.2.0 = * Added automated WordPress.org SVN deploy workflow (deploy on GitHub Release) * Added plugin directory assets (icons, banners) * Added .distignore for clean SVN deployments * Added readme/assets update workflow (update WordPress.org without new release) * Streamlined auto-tag workflow (ZIP build now handled by deploy action) = 1.1.9 = * Re-included composer.json in distribution ZIP (required when vendor/ is present) = 1.1.8 = * Removed vendor CLI binaries (bin/html-to-markdown) from release ZIP * Excluded composer.json from distribution * Improved forbidden file detection in build workflow = 1.1.7 = * Lowered PHP requirement from 8.1 to 7.4 (code + vendor deps confirmed compatible) * Fixed deploy workflow: .gitattributes and README.md now excluded from production * Added PHP 7.4 to CI syntax check matrix = 1.1.6 = * Converted inline scripts to wp_add_inline_script() for WP Codex compliance * Extracted inline styles to external CSS files with wp_enqueue_style() * Updated contributor and Author URI metadata = 1.1.5 = * Fix fatal error: rebuild vendor with composer --no-dev for release ZIP = 1.1.4 = * Exclude dev dependencies from release ZIP (phpstan, phpcs, etc.) = 1.1.3 = * Plugin name fix = 1.1.1 = * Respecting WP / WordPress trade mark = 1.1.0 = * Code Quality: PHPCS + PHPStan Audit — alle Violations behoben (PHPCS 260→1, PHPStan 649→0) * Tooling: phpcs.xml.dist, phpstan.neon, Composer Scripts (lint, fix, analyse) * CI: Strikte PHPCS- und PHPStan-Jobs (kein continue-on-error mehr) * Infrastructure: Pre-Commit-Hook für automatisches Code-Formatting * Fix: Schema.php — post_author Type-Cast für get_the_author_meta() = 1.0.0 = * Production release * Version synchronization (header, constant, readme.txt) * Security: Admin email no longer exposed in llms.txt by default * UCP Discovery: Dynamic platform detection (WordPress vs WooCommerce) * WebMCP: Removed non-implemented endpoint references * WebMCP: Fixed option check consistency * Added PHPCS configuration (WordPress Coding Standards) * Added PHPStan Level 6 configuration * Comprehensive CI pipeline (syntax, PHPCS, PHPStan, integrity checks) * Removed development artifacts from repository = 0.3.1 = * Compatibility V3.1: Multi-Family Safeguard — Conflict State detection * Admin: Conflict State banner on all admin pages * llms.txt: 503 response in Conflict State * Schema: No output in Conflict State * WebMCP context.json discovery endpoint = 0.3.0 = * Compatibility Layer V3: Enhance-Fix * serve_llms_txt() uses should_register_own_route() to prevent double output * Yoast Fallback: Citelayer takes over when Yoast has no physical file * State-Reset on plugin deactivation * Improved AIOSEO detection (defined + class_exists checks) = 0.2.0 = * Composer Support: league/html-to-markdown integration * PSR-4 Autoloading with SPL fallback * Feature-Detection on module level (Rank Math llms.txt, Yoast llms.txt) * All classes refactored to Citelayer\Plugin namespace * File structure: includes/ → src/ = 0.1.0 = * Initial release * llms.txt generation with WooCommerce awareness * Schema.org JSON-LD (Organization, WebSite, Article, Product) * UCP Discovery endpoint * Markdown for Agents with Content Negotiation * Content-Signal header configuration * Settings page in WordPress admin == Upgrade Notice == = 1.1.0 = Code Quality Audit. PHPCS + PHPStan Tooling. = 1.0.0 = First production release. Includes security improvements and CI pipeline.