[WordPress] 外掛分享: HoursFlow — Business Hours CTA

首頁 › 外掛目錄 › HoursFlow — Business Hours CTA
全新外掛
安裝啟用
—
尚無評分
20 天前
最後更新
—
問題解決
WordPress 6.6+ PHP 7.4+ v0.1.0 上架:2026-09-24

內容簡介

HoursFlow CTA 外掛讓訪客在您的商業開放或關閉時,能夠清楚地知道該採取的行動,例如在營業時撥打電話,或在非營業時預約或發送訊息。透過簡單的設定,您可以在 WordPress 網站上輕鬆管理開放時間的行動呼籲。

【主要功能】
• 全球開放與關閉的 CTA,透過短碼共享
• 支援週一至週日的時程設定
• 簡單的狀態覆蓋選項
• 支援 HTTPS 及 tel: 行動
• 自訂背景與文字顏色
• 無需外部服務或計時器

外掛標籤

開發者團隊

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

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

原文外掛簡介

Visitors should not have to guess what to do when your business is open or
closed. HoursFlow CTA lets you present one clear action for each state, such as
calling while you are open and booking or sending a message after hours.
Configure it once in Settings > HoursFlow, then use the same schedule-aware
CTA through a shortcode or a dynamic block. HoursFlow renders the selected state
on the server, without an account or a remote service.
Who is this for?
HoursFlow CTA is for small businesses, studios, practices, shops, and service
teams that want a simple open-hours action on their WordPress site. It works
well when the action changes with the weekly schedule and the site owner wants
to keep the copy and destination under their control.
Core Features

One global open CTA and one global closed CTA shared by the shortcode and
the HoursFlow CTA block.
A Monday-to-Sunday schedule using a named IANA business timezone, including
overnight periods such as 22:00 to 02:00.
Sparse per-state block overrides for label, action, status, and hiding the
status without changing the global settings.
Root-relative URLs, HTTPS URLs, and supported tel: actions, with plain-text
labels and status values.
Global background and text colors, plus WordPress’s built-in block color and
typography controls.
A compact, responsive link with visible keyboard focus and a minimum 44 CSS
pixel target. Open and closed state is not communicated by color alone.
No browser timers, polling, AJAX, remote assets, cookies, or background
requests.

Focused by design
HoursFlow CTA is a focused weekly-hours switch, not a booking system or a full
business-hours manager. Each weekday has one period or is closed. Holiday
exceptions, multiple daily periods, split shifts, date ranges, and automatic
schedule-generated status copy are outside this release. The status message is
written by the administrator and stays exactly as configured.
HoursFlow is intended for a single-site installation. Multisite and network
activation are not claimed by this release.
Usage
Use the shortcode anywhere WordPress processes shortcodes:
[hoursflow_cta]

[hoursflow_cta hide_status="1"]

Only the exact hide_status="1" value hides the selected state’s status. Other
attributes and enclosed content are ignored.
The dynamic hoursflow/cta block uses the same server renderer. It can override
the label, action, or status independently for its open and closed states. A
block can also hide a state’s status; invalid or missing values fall back to
the corresponding global value. Removing all overrides restores the standard
block output.
Schedule and timezone
Times use the saved business timezone, not the visitor, browser, server, or
WordPress site timezone. UTC and named IANA regions such as
America/New_York are valid; raw UTC offsets are not.
A period is half-open: the opening minute is open and the exact closing minute
is closed. A closing time earlier than the opening time continues overnight
into the next day and belongs to the day on which it starts. Equal opening and
closing times are invalid and do not mean 24-hour opening. PHP’s timezone data
handles daylight-saving transitions; there is no separate DST setting.
Appearance and accessibility
Global background and text colors apply to the shortcode and provide the
block defaults. Blank saved colors use #166534 and #FFFFFF; nonblank colors
must be six-digit hexadecimal values and the pair must meet WCAG 2.2 AA
contrast for normal text. Blocks may use WordPress’s built-in color and
typography controls for instance-specific styling.
The frontend CTA is a native keyboard-operable link with visible focus styling,
readable status text, safe wrapping, and no fake button role or live region.
The settings screen includes a keyboard-operable preview that never follows an
action.
Caching
HoursFlow checks the schedule when the shortcode or dynamic block renders.
Cached page HTML can therefore remain stale until the site’s page-cache TTL.
If a site needs a maximum staleness of N minutes, set its cache TTL to no
more than N minutes or arrange boundary purges in the site’s own caching
system. HoursFlow does not manage cache variation or purges.
Privacy
HoursFlow makes no external requests and loads no remote scripts, fonts, images,
or stylesheets. It collects no visitor data, sets no cookies, and performs no
tracking or telemetry. A visitor can follow the configured CTA, and an
administrator can follow the clearly labeled Gasatrya hire or donation link on
Settings > HoursFlow; those are ordinary user-initiated navigations.
Deactivation and uninstall
Deactivation stops HoursFlow behavior but keeps the saved settings for
reactivation. Uninstall deletes the HoursFlow configuration and schema marker.
The plugin creates no custom tables, posts, pages, user metadata, or transient
business data. Reinstalling after uninstall starts unconfigured.

延伸相關外掛

文章
Filter
Mastodon