| 开发者 | llmaffiliate01 |
|---|---|
| 更新时间 | 2026年9月30日 21:40 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
/ai-terms page (or equivalent) that displays your site's AI usage and content terms. It functions as a site-published policy page that visitors—including AI systems and human readers—can view. Site owners are responsible for the contents and legal suitability of the terms. The plugin includes a default template; you may customize it to match your needs.
GOOGLE SEARCH CONSOLE AND BING WEBMASTER TOOLS (OPTIONAL)
The LLMAffiliate service can provide a Google Search Console token and a Bing Webmaster Tools token on llmaffiliate.com for connected sites (see your dashboard or integration docs). If you choose to use them, open Settings → LLMAffiliate AI Traffic in WordPress and paste each token into its matching field, then save:
<meta name="google-site-verification" content="…"><meta name="msvalidate.01" content="…">content part), not the whole meta tag, and do not swap the two tokens. Each token is stored only in your site's database and its tag is printed on your public frontend. You can clear either field at any time to remove its tag.
Why this helps: With your consent, LLMAffiliate can verify the site in Search Console and Bing Webmaster Tools tied to those tokens, which helps the service monitor indexing coverage and page performance for your integration and support you more effectively. This is fully optional; if you leave the field empty, nothing is added to your HTML.
No extra HTTP request is made to Google or Bing from the plugin for this feature—the meta tags are for their crawlers when they visit your site.
/wp-content/plugins/ using the folder name llmaffiliate-ai-traffic-monetizer (this must match the Text Domain header so automated checks and translations stay aligned).No. WordPress admin, login, REST API, and static assets are always bypassed.
The plugin logs the failure (if enabled), adds an X-LLMAFFTM-Interceptor: fallback header, and allows WordPress to render normally.
Yes. Googlebot and other search crawlers always receive original content, ensuring compliance with search engine guidelines.
If the plugin lives in a directory with a different name (for example llm-interceptor), some tools compare that folder to the Text Domain and show a warning. Use the directory name llmaffiliate-ai-traffic-monetizer (the plugin slug) under wp-content/plugins/—the same layout as the WordPress.org distribution ZIP.
Each field saves a verification token in your database and prints one meta tag on the public site: the Google field outputs google-site-verification, and the Bing field outputs msvalidate.01. LLMAffiliate may issue these tokens on llmaffiliate.com so they can verify the property for support, monitoring, and better visibility into indexing and performance—or you can paste your own tokens from Google Search Console and Bing Webmaster Tools. Paste only the content value into the matching field. Clear a field and save to remove its tag.
<meta name="msvalidate.01"> on the public site only when a token is saved; clear the field to remove it.Authorization: Bearer header, since the API now requires it. No new credential is introduced; sites without a generated token are unaffected.GoogleAgent-URLContext is treated as an LLM fetcher./buy/ URLs. robots.txt includes Google-InspectionTool and no longer adds an llms.txt comment./buy/{asin} plugin redirects. Affiliate URLs now live in enhanced content; the plugin no longer intercepts buy paths or counts clicks.assets/admin.css and assets/admin.js, registered and enqueued through the WordPress asset API.wp_localize_script().ABSPATH guards added to every PHP file; $_POST values are run through wp_unslash() before sanitizing./buy/{asin} requests are handled on init (like /llms.txt and the plugin sitemap) and resolve to the merchant URL via the LLMAffiliate buy-redirect API, with a 307 fallback to amazon.com/dp/{asin} when the API is unavailable. Buy paths bypass LLM interception.robots.txt crawler list from 14 to 28 user-agents (added Bingbot, Applebot, Meta-ExternalAgent, Amazonbot, cohere-ai, Bytespider, CCBot, DuckDuckBot, YandexBot, and others). Added llms.txt reference comment./sitemap.xml now uses products_count and total_traffic from the API to compute per-URL <priority> (0.5–1.0) and <changefreq> (daily/weekly/monthly) instead of static values./llms.txt endpoint: serves a structured Markdown site overview (auto-generated description, product categories, brands, price ranges, enhanced page listings) via the LLMAffiliate API./llms-full.txt endpoint: serves a detailed full product catalog in Markdown with complete product specs, prices, and buy links inline./sitemap.xml and robots.txt: read site_url from the public user-sitemaps API response (replacing the old sitemap_url field) so submitted integration URLs appear in the plugin sitemap and monetized paths are listed correctly in robots.txt.llmafftm_gsc_verification_token, with Save / Clear and AJAX handler llmafftm_save_gsc_verification.Tested up to header updated.public/user-sitemaps API (documented under External services).llmafftm_ / LLMAFFTM_. Legacy llm_interceptor_* options are migrated on upgrade. Response headers use X-LLMAFFTM-*.wp_json_encode().llmaffiliate-ai-traffic-monetizer.wp_register_style() + wp_enqueue_style() + wp_print_styles()) instead of a direct <link rel="stylesheet"> tag, per the WordPress Plugin Review Team's guidance on correctly enqueuing CSS and JavaScript.== External services == section to the readme that fully discloses the LLM Affiliate cloud service (onboarding and enhanced-content render endpoints), the data transmitted, the conditions under which each request is made, and links to the service's Terms of Service and Privacy Policy — per the WordPress Plugin Review Team's third-party-service disclosure requirement./ai-terms page) are passed through wp_kses() with a full-document allow-list, which is exposed via the new filter llmafftm_allowed_full_html so the list can be extended without modifying plugin files. The JSON-LD structured-data block uses wp_json_encode() inline with the JSON_HEX_TAG|JSON_HEX_AMP|JSON_HEX_APOS|JSON_HEX_QUOT flags so it is safe to inline inside a <script type="application/ld+json"> tag.json_encode() calls with wp_json_encode() (onboarding POST body and suspicious-event debug log) per the WordPress Coding Standards preference for the WP-safe JSON encoder.urlencode() in the enhanced-content URL builder with rawurlencode() so query-string values are encoded per RFC 3986, as recommended by the WordPress Plugin Review Team and WordPress.PHP.DiscouragedPHPFunctions.urlencode_urlencode.https://llmaffiliate.com/terms) and Privacy Policy (https://llmaffiliate.com/privacy) URLs referenced from the == External services == section of this readme.public/user-sitemaps external API used when serving the plugin sitemap URL.llmafftm_google_site_verification filter.esc_url() on <loc> output for WordPress EscapeOutput compliance.