[WordPress] 外掛分享: CloseHub Connector

首頁 › 外掛目錄 › CloseHub Connector
WordPress 外掛 CloseHub Connector 的封面圖片
20+
安裝啟用
—
尚無評分
6 天前
最後更新
—
問題解決
WordPress 6.4+ PHP 8.1+ v1.3.0 上架:2026-06-29

內容簡介

CloseHub Connector 外掛簡化了將 WordPress 網站與 CloseHub 連結所需的多重憑證,提供安全的 API 金鑰和專用的 REST API 命名空間,方便用戶進行行銷項目管理。

【主要功能】
• 生成安全的 API 金鑰
• 提供專用的 REST API 命名空間
• 支援內容創建與更新功能
• 支援上傳媒體並返回媒體庫 URL
• 允許替換 Gutenberg 區塊
• 支援多種文章類型的操作

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.3.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「CloseHub Connector」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

CloseHub Connector replaces the multiple credentials previously required to link a WordPress site with CloseHub — a marketing project management platform.
Once the plugin is activated, it generates a secure API key and exposes a dedicated REST API namespace (/wp-json/closehub/v1/) that CloseHub uses to interact with your site.
It also exposes content abilities through the WordPress MCP Adapter. MCP clients can discover, list, read, create, update, upload an image, update a post slug, replace one exact Gutenberg block, and send posts to the trash using the server at /wp-json/mcp/mcp-adapter-default-server. closehub/upload-media accepts an image as data_base64, returns its Media Library URL, and requires the user’s upload_files capability; pass that URL as featured_image_url to create or update content without uploading a duplicate. closehub/update-post-slug accepts a post ID and slug, then returns the normalized unique slug and resulting URL. closehub/get-post returns a content_hash; use it with closehub/replace-gutenberg-block, a zero-based block_path, the current block name, and one replacement serialized block so a stale read cannot overwrite newer content. These abilities default to the post type but accept a post_type input for any other post type registered with an admin UI — pages, WooCommerce products (including product types WooCommerce’s own MCP abilities don’t support, such as subscriptions), or custom post types. Authenticate with OAuth as a WordPress user, or use the same CloseHub API key as a Bearer token for a shared Claude Team connector. The API key acts with the capabilities of the WordPress user who last generated it.
Settings: One page under Settings → CloseHub (Network Admin → Settings → CloseHub on multisite) shows the API key, the CloseHub endpoint, the MCP server URL, and the user the key acts as. The same API key connects CloseHub and Claude.
Claude Team: In Claude, add a custom connector with the MCP server URL from Settings → CloseHub, choose No sign-in, and add a request header named authorization with the value Bearer . The URL uses a ?rest_route= query to help preserve the header when a server rewrite strips it from /wp-json/ requests. Everyone sharing this connector has the WordPress permissions of the user who last generated the key. Regenerating the key disconnects CloseHub and every Claude user until updated. OAuth per-user sign-in remains available under Advanced.
When WPML is active, create-post and POST /closehub/v1/posts also accept language and an optional translation_of source post ID. The connector assigns the new post to the requested language and joins it to the source post’s translation group. List/get/create responses include the language and translation-group details. Existing posts retain their language on update.
For WooCommerce, MCP clients with the manage_woocommerce capability can retrieve an order summary for a date range, including order count, total sales, average order value, and matching orders.
It also exposes a set of “site” abilities for the CLOSE web go-live checklist — configuration steps that used to be manual or wp-cli only. Each requires the WordPress capability noted below.
Available MCP site abilities:

closehub/search-replace-domain (manage_options) — Replace old_domain with new_domain across post content, options, comments, and meta tables, re-serializing serialized values safely. Skips wp_posts.guid. Pass dry_run: true to preview the number of rows that would change per table without writing anything. Example: { "old_domain": "staging.example.com", "new_domain": "example.com" }.
closehub/set-robots-txt (manage_options) — Write content to robots.txt, physically if the site root is writable, otherwise served virtually through the robots_txt filter. Example: { "content": "User-agent: *\nDisallow:\nSitemap: https://example.com/sitemap.xml" }.
closehub/set-post-noindex (edit_post on the target post_id) — Set or clear the noindex robots meta for one post/page using whichever SEO plugin (Rank Math or Yoast) is active. Example: { "post_id": 42, "noindex": true }.
closehub/flush-permalinks (manage_options) — Regenerate rewrite rules, equivalent to wp rewrite flush. Takes no parameters.
closehub/get-htaccess (manage_options, read-only) — Return whether .htaccess exists and its current content. Takes no parameters.
closehub/set-site-settings (manage_options) — Update the site timezone and/or admin email; at least one is required. Example: { "timezone": "Europe/Madrid", "admin_email": "[email protected]" }.
closehub/reassign-posts-author (edit_others_posts) — Reassign every post of post_type (default post) from from_author_id to to_author_id, with a per-post success result. Example: { "from_author_id": 3, "to_author_id": 1 }.
closehub/install-wp-org-plugin (install_plugins) — Install (without activating) a plugin from the WordPress.org plugin directory by slug. Example: { "slug": "two-factor" }.
closehub/list-unused-plugins (activate_plugins, read-only) — List installed plugins that are not currently active, as removal candidates. Takes no parameters.
closehub/update-plugins-and-core (update_plugins and update_core) — Update every plugin with an available update and WordPress core to the latest version, with a per-plugin success result. Takes no parameters.
closehub/create-site-user (create_users, plus promote_users when role is administrator) — Create a WordPress user for the site’s client. role defaults to editor; username defaults to the local part of email when omitted. Example: { "email": "[email protected]", "role": "editor" }.
closehub/clear-cache (rocket_purge_cache or manage_options) — Purge the page cache of the active caching plugin (currently WP Rocket). scope is all (default, whole site) or posts (only the given post_ids; IDs that don’t match a post are reported back in invalid_post_ids). Pass minify: true to also clear minified CSS/JS files. Returns 503 when no supported cache plugin is active. On multisite it purges only the site the MCP request is made against; on a subdirectory network, purging the main site with WP Rocket also clears the subsites’ cached pages, since they live inside the main site’s cache folder. Example: { "scope": "posts", "post_ids": [ 42, 57 ] }.

What it replaces:

WordPress Application Password (username + password)
WooCommerce REST API consumer key and consumer secret
Gravity Forms API key

You only need to share two things with CloseHub:

Your site URL
The generated API key (found at Settings → CloseHub)

Available endpoints:

GET /closehub/v1/ping — verify the connection
POST /closehub/v1/posts — publish or draft a post (or another post type via post_type), including optional SEO metadata (Rank Math or Yoast), featured image, categories, and WPML language/translation_of when WPML is active
PUT /closehub/v1/posts/{id} — update a post’s (or other post type’s) title, content, excerpt, status, SEO metadata, featured image, or categories
GET /closehub/v1/woocommerce/orders — fetch order data (requires WooCommerce)
GET /closehub/v1/gravity-forms/forms — list forms (requires Gravity Forms)
GET /closehub/v1/gravity-forms/forms/{id} — get form details
GET /closehub/v1/gravity-forms/forms/{id}/entries — count form entries by date range
POST /closehub/v1/elm-releases — create an Easy License Manager release for a product (by product_id or product_sku) and update its WooCommerce download file to the given zip_url in one call; optional tested, requires, requires_php, upgrade_notice
PUT /closehub/v1/elm-releases/{id} — update fields on an existing release (all optional) and, if zip_url is given, its product’s download file

WooCommerce, Gravity Forms, and Easy License Manager endpoints return a clear error if those plugins are not active — they are not required.
Multisite networks:
On a WordPress Multisite network, the same endpoints listed above are shared by every site in the network — there is no separate namespace or key to manage. Activate the plugin network-wide and go to Network Admin → Settings → CloseHub to find one API key shared by the whole network. Every request to those endpoints automatically returns a sites array with one entry per site in the network (site_id, url, and that site’s data or an error message), instead of a single site’s result — handy when a network is used to run the same company in multiple languages.

延伸相關外掛

文章
Filter
Mastodon