| 开发者 | delchostanimirov |
|---|---|
| 更新时间 | 2026年11月27日 22:38 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.2 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
<script> tags from post bodies (KSES sanitization) and hides underscore-prefixed meta from the REST API by default, so neither can be set by an external publishing tool without a companion plugin.
This plugin solves that by:
_geoforge_jsonld post-meta key, exposed via the REST API for every public REST-enabled post type, that GEOforge writes to when publishing or updating an article.<script type="application/ld+json"> tag in the page <head> on any singular view — posts, pages, and custom post types._yoast_wpseo_title / _yoast_wpseo_metadesc), Rank Math (rank_math_title / rank_math_description), and The SEO Framework (_genesis_title / _genesis_description) for REST API write access, so GEOforge can sync SEO titles and meta descriptions on publish. Each registration uses an edit_post auth check and sanitize_text_field-based sanitization capped at 320 characters. Registration is idempotent — if the SEO plugin already exposes the key for REST, our registration is a no-op.<head> on each article.The plugin is designed to render JSON-LD that GEOforge writes during publish. It will work with any tool that writes a JSON-encoded string to the _geoforge_jsonld post-meta key via the REST API, but on its own it does nothing — the settings screen covers crawl tracking only, and there is no admin UI for entering schema by hand.
Yes. Go to Settings → GEOforge Schema and paste the webhook URL and secret shown in GEOforge under Settings → Integrations → Crawl Tracker → Manual setup, then click "Verify & activate" back in GEOforge. Only your own WordPress administrator uses that screen — the WordPress user you connect to GEOforge then needs publishing capabilities only (an Editor account is enough). Connecting an Administrator-level user remains supported and lets GEOforge install, update, and configure the plugin for you in one click.
No. Multiple <script type="application/ld+json"> blocks per page are valid Schema.org and supported by Google — search engines merge the data. If both your SEO plugin and GEOforge emit schema, both will appear in the page head.
For SEO titles and meta descriptions, the plugin registers the Yoast, Rank Math, and The SEO Framework meta keys for REST so the active plugin renders GEOforge's values instead of auto-generating its own. The registration calls are idempotent — if the SEO plugin has already registered the key itself, our call is a no-op. The auth callback restricts writes to users with edit_post capability on the target post. All in One SEO stores its data in a custom table rather than post meta, so it is not covered.
WordPress treats underscore-prefixed meta as "protected" — hidden from the default Custom Fields UI in the post editor. This prevents accidental editing of the JSON blob while still allowing the REST API (and this plugin) to read and write it.
The stored schema data is preserved in post meta. Re-activating restores schema rendering on the front end. Uninstalling the plugin does not remove the meta.
_yoast_wpseo_title and rank_math_title for REST writes, so the SEO title you set in GEOforge reaches the page's <title> on Yoast and Rank Math sites, not only on The SEO Framework. Same edit_post check and text sanitization as the description keys.geoforge/v1/status check now also says which SEO plugin is active (Yoast SEO, Rank Math, The SEO Framework or All in One SEO), so GEOforge can tell you when the title or description it sent didn't reach that plugin.wp action instead of send_headers, because at send_headers WordPress has not yet decided whether a request is a 404 — so missing pages were reported as genuine AI-crawler visits. This matters more than it sounds: a User-Agent is trivially forged, and credential scanners impersonate AI crawlers precisely because those are the identities sites allow through, then sweep for files like /.env that do not exist. On one site those forgeries were 45% of apparent AI-crawler traffic. Requests to the WordPress admin and to robots.txt are skipped for the same reason.DuckAssistBot (DuckDuckGo's assistant) was missing entirely, so its crawls were never reported and showed as a permanent zero in GEOforge — indistinguishable from never being crawled. Amzn-SearchBot (Amazon's search-index crawler, distinct from the Amazonbot training crawler) is now listed explicitly; it had been matching only by coincidence, because its User-Agent happens to contain an amazonbot support URL, and would have stopped being detected if Amazon ever changed that URL.Google-Extended and Applebot-Extended have been removed — they are robots.txt opt-out tokens rather than crawlers, so they never appear in a request's User-Agent and could never have matched. Added the search-index and user-triggered agents that were missing: OAI-SearchBot, Claude-SearchBot, Claude-User, Perplexity-User, and Applebot. These are the agents that fetch pages to answer questions, so they are the ones that reflect whether an AI assistant can actually cite your content; the previous list covered mostly model-training crawlers.manage_options-gated geoforge/v1/configure REST route — the crawl detection itself never needed those privileges. With manual setup the connected user only needs publishing capabilities. Values are sanitized with esc_url_raw / sanitize_text_field, and the screen is manage_options-gated like any options page.geoforge/v1/status route now also reports secret_fingerprint — the first 8 hex characters of sha256(webhook secret), or null when unconfigured — so GEOforge can confirm the correct secret was pasted during manual setup. The secret itself is never exposed, and the fingerprint is not reversible.geoforge/v1/status health-check route is now public and reports the plugin version. Previously it required manage_options, so sites that connected GEOforge with a non-Administrator user (publishing needs only publish_posts) had their installed plugin misreported as "Not installed". The route exposes only presence, version, and whether crawl tracking is configured — never the webhook secret. The geoforge/v1/configure route still requires manage_options.geoforge/v1/configure REST route (requires manage_options). See the new "External services" section for exactly what is sent and when._genesis_title and _genesis_description post-meta keys for REST write access, alongside the existing Yoast and Rank Math keys, so GEOforge can sync the SEO title and meta description to sites using The SEO Framework. Same idempotent registration and edit_post auth check as the other SEO keys._geoforge_jsonld, _yoast_wpseo_metadesc, and rank_math_description meta keys for every public REST-enabled post type (previously posts and pages only), so GEOforge can publish into custom post types with full schema and meta-description delivery. Registration runs at init priority 20 so post types registered by themes/plugins at the default priority are included..geoforge-content stylesheet on all singular views, not just posts and pages, matching the JSON-LD emitter.wp_json_encode with JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_APOS | JSON_HEX_QUOT (plus JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) before emitting. Every HTML-sensitive character is emitted as a \uXXXX escape, replacing the prior str_replace('<!--', '<\/', $json) approach._yoast_wpseo_metadesc (Yoast SEO) and rank_math_description (Rank Math) post-meta keys for REST write access. Both use show_in_rest, an edit_post auth callback, and a sanitize_text_field-based sanitizer capped at 320 characters. Idempotent — no-op when the SEO plugin already exposes the key.<head--> tag and leave the sentence incomplete. Functionality unchanged..geoforge-content to a 768px max-width and makes inline images responsive. Fixes edge-to-edge text on themes that don't apply a content container around the_content(). No typography or color rules — host theme keeps full control of look-and-feel.