| 开发者 | ristorehemagi |
|---|---|
| 更新时间 | 2025年11月25日 17:01 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.8 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
/wp-json/contentgecko/v1 while sanitising content and metadata through WordPress core helpers./health endpoint matches the WordPress environment.
contentgecko-connector folder to the /wp-content/plugins/ directory or install the ZIP via Plugins → Add New → Upload Plugin.Every request must include the X-ContentGecko-Key header. The stored key is hashed using hash_hmac() with AUTH_SALT, and an allow list filter (contentgecko_allowed_ips) lets you restrict inbound requests by IP if desired.
No. The plugin only processes requests that hit your site’s REST API and never sends telemetry back to ContentGecko automatically. Logging is disabled by default and, when enabled, is limited to recent request metadata stored in a WordPress transient.
The plugin ships with Parsedown (MIT license) to convert Markdown payloads to HTML when needed. Its licence is included in licenses/parsedown.txt.
wpml_object_id filter with wpml_active_languages for more reliable translation detection.wpml_switch_language to generate correct localized permalinks.linksByLanguage with all available language variations.linksByLanguage and language fields to all products in /store/products endpoint.linksByLanguage and language fields to all categories in /store/categories endpoint.contentgecko_product_language_links and contentgecko_category_language_links filter hooks./store/images/search endpoint to return all WordPress media library images (not just product images).page and perPage parameters.attachedTo field showing parent post information when images are attached to posts/products./posts/{id}/delete endpoint to move posts to trash (bin) via REST API.