| 开发者 | andplus |
|---|---|
| 更新时间 | 2026年5月8日 18:38 |
| PHP版本: | 7.2 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
/llms.txt and /sitemap-ai.xml, plus standard head tags. Many sites already output structured data (such as schema.org), but AI crawlers may still miss context—llms.txt and sitemap help close that gap.
ANDPLUS-LLMO helps you:
/llms.txt endpoint for AI visibilitywp_head/sitemap-ai.xml including your llms.txt.htaccess (the plugin does not write to .htaccess). Nginx: configure as shown in Setup. WordPress robots.txt can include a comment for the llms.txt URL and a Sitemap: line for sitemap-ai.xml (disable or customize via filters ap_llmo_robots_append_llms_comment, ap_llmo_robots_append_sitemap_ai, ap_llmo_robots_txt_append). Home can show optional rule-based hints (no API).
Optional Pro add-on (separate download): Adds AI-assisted content workflows (BYOK with OpenAI), extended endpoints (llms.full.txt, .ai-context, docs/ai), weekly reports, and extended sitemap-ai.xml URLs. Licensing is handled only in the Pro add-on. In the free plugin, upgrade links use the filter ap_llmo_pro_upgrade_url; AI Visibility “recent visits” list length can be tuned with ap_llmo_visibility_recent_limit (default 100).
Filters: ap_llmo_llms_public_url, ap_llmo_sitemap_ai_public_url are available for custom environments without pretty URLs. AI Visibility retention and export can be tuned with ap_llmo_access_log_retention_days (default 90), ap_llmo_access_log_max_rows, ap_llmo_access_log_export_max_rows, and ap_llmo_access_log_csv_filename (default andplus-llmo-access-log-{period}-{date}.csv). Extensions can supply ap_llmo_visibility_trends_url_for_path (empty string, path) so the access log shows an extra link per path (ANDPLUS-LLMO Pro uses this for Visibility trends when licensed).
Support
/wp-content/plugins/ or install from ZIP..htaccess before # BEGIN WordPress.
/llms.txt (plain text) and /sitemap-ai.xml (XML) after your server rules are in place.languages/andplus-llmo-ja.mo, andplus-llmo-ja_JP.mo when present). Site language ja / ja_JP will load automatically.languages/andplus-llmo.pot — for translators using Poedit.languages/README.md in the plugin folder (WP-CLI wp i18n make-pot workflow).You bring your own OpenAI API key so token usage stays on your account.
This plugin does not load any licensing SDK. OpenAI is contacted only when using AI features via ANDPLUS-LLMO Pro (BYOK). Upgrade links in wp-admin can be customized via the filter ap_llmo_pro_upgrade_url (default: https://www.andplus.co.jp/).
Yes. On ANDPLUS-LLMO → AI Visibility, use Download CSV (current period) to download UTF-8 CSV (no BOM). The export matches the period tab you selected (7 / 30 / 90 days). Very large exports are capped for stability (see filter ap_llmo_access_log_export_max_rows in the plugin).
ap_llmo_daily_cron dispatch so the daily rollup (run_yesterday_rollup) and access-log maintenance actually run. The previous do_action( 'ap_llmo_daily_cron' ) inside the same hook caused unbounded recursion and never reached lower-priority callbacks. Core work now runs on internal action ap_llmo_daily_cron_workers (documented in ap-llmo-hooks.php). Extensions should keep using ap_llmo_daily_cron.robots_txt filter priority is now late (999) so llms.txt comment and sitemap-ai.xml Sitemap: line remain when other plugins (e.g. XML sitemap plugins) also generate robots output.ap_llmo_pro_upgrade_url still allows overrides).ap_llmo_path, exact match). Filter: ap_llmo_visibility_trends_url_for_path.Content-Type: text/csv; charset=utf-8). Use Data → From Text/CSV in Excel if double-click import mis-detects encoding.docs/PRODUCT-MEMO.md updated — clarifies Free vs Pro for daily aggregates, the Rebuild daily aggregates tool (0.3.5), and lists Pro-only planned enhancements (custom date range on trends, path drilldown, threshold alerts). No functional change from 0.3.5.ap_llmo_visibility_daily_max_backfill_days caps how many days are processed per run (default 366). Action ap_llmo_visibility_daily_backfilled fires when done. The daily table is also auto-created on demand if missing.Ap_Llmo_Visibility_Daily::ensure_table_exists(), ::backfill_range_inclusive( $start, $end )..htaccess file. Setup → Redirect shows a copy-paste Apache mod_rewrite block (and Nginx examples as before). This addresses Plugins Team feedback on server file modifications..htaccess..htaccess: /llms.txt and /sitemap-ai.xml use internal rewrites to index.php?… with [L,QSA] instead of HTTP 302 redirects, so the first request is handled by WordPress (better AI Visibility logging for pretty URLs; one fewer round-trip)./llms.txt) when query args are missing, in addition to ?ap_llmo_llms=1 / ?ap_llmo_sitemap_ai=1 (helps stacks without server rules).path for these endpoints uses the pretty pathname (e.g. /llms.txt). HEAD requests from known AI crawlers are recorded.ap_llmo_visibility_daily_retention_days.# BEGIN ANDPLUS-LLMO marker in the suggested snippet.AP_LLMO_DEV_PRO or the ap_llmo_dev_pro option. Ap_Llmo_License::is_pro() is only apply_filters( 'ap_llmo_is_pro', false ) — the paid ANDPLUS-LLMO Pro add-on (or another extension) sets Pro via that filter. For local Pro development without a license, define AP_LLMO_PRO_DEV in wp-config.php while the Pro add-on is active (see Pro add-on readme).AP_LLMO_DEV_PRO / developer option) no longer shows a misleading Pro plan label.ap_llmo_access_log_max_rows filter remains for developers who need it).andplus-llmo-access-log-… prefix (replaces legacy ap-llmo-…). Developers can override the full filename with the ap_llmo_access_log_csv_filename filter.?period=all redirects to 90 days).andplus-llmo (request slug reservation andplus-llmo with the Plugins Team when replying).load_plugin_textdomain(); WordPress 4.6+ loads translations from /languages automatically.REQUEST_URI / HTTP_USER_AGENT and ap_llmo_llms_body on save./sitemap-ai.xml includes llms.txt; Pro extends sitemap with additional URLs.robots.txt comment for llms.txt URL and Sitemap: entry for sitemap-ai.xml.wp_head outputs rel="sitemap" for sitemap-ai.xml..htaccess block now includes sitemap-ai.xml redirect alongside /llms.txt.