Title: Cohost
Author: cohost
Published: <strong>2026 年 5 月 23 日</strong>
Last modified: 2026 年 5 月 26 日

---

搜尋外掛

![](https://ps.w.org/cohost/assets/icon.svg?rev=3549337)

# Cohost

 由 [cohost](https://profiles.wordpress.org/cohost/) 開發

[下載](https://downloads.wordpress.org/plugin/cohost.0.1.3.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/cohost/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/cohost/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/cohost/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/cohost/#developers)

 [技術支援](https://wordpress.org/support/plugin/cohost/)

## 外掛說明

Connect your WordPress site to your Cohost account and show upcoming events as a
list, with click-through to per-event profile pages — natively in your theme. No
iframes. No redirect to a third-party ticketing page.

Cohost is the headless platform for event managers — events, attendees, ticketing,
scanning, check-in, and workflows — and this plugin embeds your event catalog into
any WordPress theme.

**Authentication:** API token (Bearer). OAuth support is planned.

**Brand-aligned UI:** uses the canonical Cohost palette (dark `#161616`, light `#
F2F2F2`, accent square `#f97316`) and Inter typography. Easy to override from your
theme.

### Shortcodes

    ```
    [cohost_events] — events grid. All attributes are optional:
    ```

 * `limit` — events per page (default 12)
 * `columns` — grid columns 1–6 (default 3, display only)
 * `from`, `to` — ISO date range (e.g. `from="2026-06-01" to="2026-12-31"`)
 * `sort`, `order` — e.g. `sort="startDate" order="asc"`

Example: `[cohost_events from="2026-06-01" to="2026-12-31" limit="6" columns="2"]`

    ```
    [cohost_event id="…"] — single event profile. **The `id` attribute accepts either an event ID or an event slug** — the Cohost API resolves both at the same endpoint, so `[cohost_event id="evt_abc123"]` and `[cohost_event id="summer-festival-2026"]` both work.
    ```

When a configured “Events page” exists, clicking a card navigates to `/{page-slug}/{
event-id-or-slug}` and the same page renders the profile.

### Brand

The plugin ships the canonical Cohost dark “C” app icon and dark wordmark. The accent
square is always `#f97316`. The full Cohost brand guide is published at https://
cohost.vip/brand.

### Privacy & data

This plugin makes outbound HTTP requests to two Cohost-operated services:

 1. **Cohost API** (default `https://api.cohost.vip/v1`) — fetches the events the site
    displays. Each request includes the Bearer API token configured in **Cohost  Settings**.
    No user data leaves your site; only your token is sent. The base URL is configurable
    for self-hosted or staging Cohost environments.
 2. **Cohost templates manifest** (default `https://templates.cohost.vip/wp/templates.
    json`) — fetched when an admin opens the **Cohost  Templates** page. Returns a 
    list of starter layouts the admin can apply. No user data is sent. The URL is configurable
    under Settings  Advanced.

The plugin does not:

 * Track end-users or store cookies.
 * Send page-view analytics, telemetry, or installation pings.
 * Embed third-party scripts on the public-facing site.

The plugin caches API responses in WP transients (60-second TTL for events, 15-minute
TTL for templates) to minimize outbound traffic. All cached data is removed when
the plugin is uninstalled.

For Cohost’s privacy policy covering data on the Cohost side, see https://cohost.
vip/legal/privacy.

## 適用於區塊編輯器

這個外掛提供 7 個可供 Gutenberg/區塊編輯器使用的區塊。

 *   Event name
 *   Event date
 *   Event flyer
 *   Event venue
 *   Event summary
 *   Event content
 *   Event tickets

## 安裝方式

 1. Upload the plugin folder to /wp-content/plugins/ (or upload the zip via Plugins
    Add New).
 2. Activate it in WP Admin  Plugins.
 3. Open Cohost in the admin menu (or Settings  Cohost).
 4. Paste your Cohost API token and save.
 5. Pick the WordPress page that will host the events list and add `[cohost_events]`
    to it.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈Cohost〉的開發相關工作。

參與者

 *   [ cohost ](https://profiles.wordpress.org/cohost/)

[將〈Cohost〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/cohost)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/cohost/)、查看
[SVN 存放庫](https://plugins.svn.wordpress.org/cohost/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/cohost/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/cohost/)。

## 變更記錄

#### 0.1.3

 * Correct the “Tested up to” header to the current WordPress version (6.9); the
   previous value was a typo.
 * Clarify licensing: the project is GPLv2 or later (matching the plugin header),
   so the bundled license file and repository now agree.

#### 0.1.2

 * Lower the minimum PHP requirement to 7.0 (was 7.4) so the plugin installs on 
   older hosting; the two PHP 7.4 arrow functions were rewritten as closures.
 * Add the WordPress.org plugin icon (replaces the auto-generated placeholder pattern).

#### 0.1.1

 * Fix privacy policy URL.
 * Bump “Tested up to” to 7.0.
 * Remove `?cohost_event=` query-string fallback for event profiles — profiles now
   route exclusively through the registered rewrite rule (`cohost_event_id` query
   var), eliminating the unauthenticated `$_GET` read flagged in review. Event profiles
   now require pretty permalinks; the settings page shows a warning if WordPress
   is on “Plain” permalinks and event cards render unlinked in that case.
 * Replace `$_GET`-based admin notice flags with one-shot user-scoped transients(
   settings page + templates page). No `$_GET`/`$_POST` reads happen outside nonce-
   verified handlers.
 * Escape rendered event content blocks via `wp_kses_post()` on the front-end profile
   template; drop the silencing `phpcs:ignore`.
 * Escape the concatenated “View page” link in template-applied admin notices via`
   wp_kses()` with an explicit allowed-HTML allowlist.
 * Prefix `uninstall.php` locals (`$cohost_wp_options`, `$cohost_wp_option`) so 
   they don’t trip Plugin Check’s PrefixAllGlobals scanner.
 * Annotate the two intentional bulk-transient-purge `$wpdb->query()` calls (API
   client + uninstall) with explicit `phpcs:ignore` and rationale.
 * Suppress PrefixAllGlobals file-wide in the two included template files, where
   locals are template-scoped (not globals) but the scanner can’t tell.

#### 0.1.0

 * Initial release.
 * Events list + event profile shortcodes.
 * Filters: `limit`, `columns`, `from`, `to`, `sort`, `order`.
 * `[cohost_event]` accepts ID or slug.
 * API token authentication.
 * Pretty URLs via rewrite rule.
 * Branded admin chrome and brand-aligned frontend styles.

## 中繼資料

 *  版本 **0.1.3**
 *  最後更新 **1 週前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 5.8 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.9.4**
 *  PHP 版本需求 ** 7.0 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/cohost/)
 * 標籤:
 * [calendar](https://tw.wordpress.org/plugins/tags/calendar/)[event management](https://tw.wordpress.org/plugins/tags/event-management/)
   [events](https://tw.wordpress.org/plugins/tags/events/)[ticketing](https://tw.wordpress.org/plugins/tags/ticketing/)
 *  [進階檢視](https://tw.wordpress.org/plugins/cohost/advanced/)

## 評分

這個項目尚無任何評論記錄。

[Your review](https://wordpress.org/support/plugin/cohost/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/cohost/reviews/)

## 參與者

 *   [ cohost ](https://profiles.wordpress.org/cohost/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/cohost/)