[WordPress] 外掛分享: CountingDownTo

首頁 › 外掛目錄 › CountingDownTo
WordPress 外掛 CountingDownTo 的封面圖片
全新外掛
安裝啟用
—
尚無評分
剛更新
最後更新
—
問題解決
WordPress 6.2+ PHP 7.4+ v0.2.0 上架:2026-10-28

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.2.0) 或搜尋安裝

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

原文外掛簡介

CountingDownTo (countingdownto.com) is a countdown timer service. This plugin embeds those timers on your WordPress site without copying countdown logic into WordPress.
This plugin relies on the CountingDownTo service. Countdowns are created and hosted on countingdownto.com and shown on your site in an iframe. See External services below for exactly what is sent and when.
What you get

A Countdown block: paste a countdown URL or pick one from your connected account
A [countingdownto] shortcode for classic themes and page builders
An optional site-wide bar (fixed top or bottom) that shows a countdown on every page
Block patterns for common layouts
Settings diagnostics so you can see whether embeds and API calls reach CountingDownTo

How it works
Published embeds load an iframe from https://countingdownto.com/w4/{slug}. The timer ticks in the visitor’s browser against an absolute target time, so a cached page stays accurate.

Fixed-date embeds do not set cookies on visitors.
Evergreen (rolling) embeds may set a partitioned vid cookie from countingdownto.com (not a cookie on your WordPress domain) so the rolling timer continues across visits.

Connect your CountingDownTo account under Settings > CountingDownTo to list and insert your own countdowns from the block editor. The connection uses a read-only access token stored only on your WordPress site and never sent to visitors. Uninstalling the plugin deletes that token on the current site; your countdowns stay in your CountingDownTo account.
Source code
The block editor script in build/ is compiled. Its human-readable source is included in the plugin under src/countdown/. To rebuild it, run npm install and then npm run build in the plugin folder (uses @wordpress/scripts).
External services
This plugin connects to CountingDownTo (https://countingdownto.com), a countdown timer service run by the plugin author. It is needed to show countdowns, which are created and hosted there.

Countdown embeds. Every page that contains a Countdown block, a [countingdownto] shortcode or the site-wide bar loads an iframe from https://countingdownto.com/w4/{slug} in the visitor’s browser. That request sends the visitor’s IP address, User-Agent and, on HTTPS pages, the referring page URL (referrerpolicy=no-referrer-when-downgrade). Fixed-date embeds set no cookies. Evergreen (rolling) embeds may set a partitioned vid cookie (about 180 days, SameSite=None; Partitioned) on countingdownto.com, not on your WordPress domain.
oEmbed. When an editor pastes a countingdownto.com countdown URL, WordPress fetches oEmbed data from https://countingdownto.com/oembed on the server. The pasted URL is sent.
Block editor URL lookup. When an editor pastes a countdown URL into the Countdown block or picks one from the account list, the editor’s browser also requests https://countingdownto.com/oembed directly to read the countdown’s size. That request sends the countdown URL plus the editor’s IP address and User-Agent. It is separate from WordPress’s own server-side oEmbed lookup.
Block editor preview. When a Countdown block in the editor has a countdown selected (pasted, picked from the account list or created), the editor shows a live preview loaded as an iframe from https://countingdownto.com/w4/{slug} in the editor’s browser. That request sends the editor’s IP address, User-Agent and the referring admin page URL. The block inserter’s example preview is drawn locally and makes no request.
Settings page. The settings page does not load anything from countingdownto.com in the administrator’s browser. The starter cards are text and links only; nothing is requested until the administrator clicks one of the buttons described below.
Connect. When an administrator clicks Connect your account, the browser goes to https://countingdownto.com/wp-connect with the site’s host name, the plugin’s return URL (redirect_uri), a random state value, and a PKCE code_challenge with code_challenge_method=S256.
Connected account. After the administrator approves, the WordPress server exchanges a one-time code at https://countingdownto.com/api/wp/v1/token. After that it calls https://countingdownto.com/api/wp/v1/* with the stored read-only token to list countdowns and check the account plan. The token is never sent to browsers or visitors.
Create a countdown. When an editor clicks Create a countdown in the block, the WordPress server asks https://countingdownto.com/api/wp/v1/pending for a one-time handoff code (sending the site’s host name) and then checks it every few seconds, for up to 15 minutes, until the new countdown is ready to insert.
Create and starter tabs. When a user clicks Create a countdown (in the block or on the settings page) or a starter card, a new tab opens https://countingdownto.com/c/create-countdown with src=wp, the site’s timezone, locale and host name, plus the starter’s slug (from) for a starter and the handoff code (state) when started from the block.
Diagnostics. Only when an administrator clicks Run diagnostics, the WordPress server requests https://countingdownto.com/healthz and the administrator’s browser loads https://countingdownto.com/favicon.ico.

Uninstalling deletes the stored token and plugin caches on the current site. Countdowns on CountingDownTo are not deleted.
CountingDownTo terms of use: https://countingdownto.com/terms-of-use
CountingDownTo privacy policy: https://countingdownto.com/privacy-policy

延伸相關外掛

文章
Filter
Mastodon