[WordPress] 外掛分享: KOZ Copy Actions

首頁外掛目錄 › KOZ Copy Actions
WordPress 外掛 KOZ Copy Actions 的封面圖片
全新外掛
安裝啟用
尚無評分
3 天前
最後更新
問題解決
WordPress 6.2+ PHP 8.0+ v1.1.14 上架:2026-08-10

內容簡介

KOZ Copy Actions 讓您可以將選定的文字、數值、按鈕、連結或其他前端元素轉換為可複製到剪貼簿的目標。使用者可透過簡單的 CSS 選擇器設定,輕鬆管理可複製的內容,並獲得即時反饋。

【主要功能】
• 支援選定內容複製到剪貼簿
• 自訂 CSS 選擇器設定
• 提供即時反饋功能
• 獨立運作於 KOZ 套件中
• 無需將複製內容發送至外部服務

外掛標籤

開發者團隊

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

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

原文外掛簡介

KOZ Copy Actions lets you turn selected text, values, buttons, links or other frontend elements into copy-to-clipboard targets.
You choose what can be copied by adding simple CSS selectors in the plugin settings. The plugin then handles mouse clicks and keyboard activation, shows optional feedback, and copies the value directly in the visitor’s browser.
No copied content is sent to the developer or to an external service.
Part of the KOZ Suite
KOZ Copy Actions is one focused module of the KOZ Suite, a family of independent WordPress plugins with a shared KOZ administration experience and visual identity.
Each KOZ plugin can be installed independently or combined with other KOZ Suite modules.
Current public KOZ plugins:

KOZ SEO Core — technical SEO, schema, sitemaps, AI discovery and OpenAI Vision image ALT.
KOZ Copy Actions — accessible copy-to-clipboard actions for selected WordPress content.
KOZ URL-Only Comment Spam — privacy-first local moderation for URL-only comment spam.
KOZ Static Translate — AI-powered multilingual translation with Microsoft Azure Translator and static language routes.

Additional KOZ Suite modules are used in production and may be published separately as they are prepared for public distribution.
Typical uses

Copy coupon codes, reference numbers, wallet addresses or contact details.
Add a copy action to code snippets, IDs or short text values.
Copy the current value of an input, textarea or select field.
Copy a value stored in a data attribute.
Copy text or a form value from another element on the same page.
Limit copy actions to selected paths or sections of the site.
Use the same configuration on multilingual WordPress sites.

Quick start

Install and activate KOZ Copy Actions.
Open KOZ Suite -> Copy Actions in the WordPress admin.
Enable Copy actions.
In CSS selectors, add one selector per line for the elements visitors should be able to copy.
Save the settings.
Open a public page and click or keyboard-activate a matching element.

Example selector:
.copy-me

If your page contains:
PROMO-2026

the visitor can copy PROMO-2026 by activating that element.
Choosing what gets copied
The plugin uses the first applicable source below.
1. Explicit value with data-copy-value
Use this when the visible label is different from the value that should be copied.

Copied value: PROMO-2026
2. Another element with data-copy-target
Use a local ID reference beginning with #.

Copied value: the current value of #account-number.
3. Form controls
If a matching element is an input, textarea or select field, the plugin copies its current value.
4. Normal page content
For other matching elements, the plugin copies the element’s visible text content.
Supported selectors
For safety and predictable behaviour, settings accept simple selectors only:

A class selector such as .copy-me
An ID selector such as #copy-code
Supported data-attribute selectors such as [data-copy-value], [data-copy-target], [data-copy-key] and [data-uafree-copy]

Add one selector per line. Duplicate entries are removed automatically.
Limit copy actions to selected pages
The Allowed paths field is optional.
Leave it empty to enable matching copy targets on all public paths.
Add one local path per line to restrict where the frontend handler runs.
Examples:
/contact/
/donate/
/products/*

An ending * matches all paths beginning with that prefix.
For multilingual sites with language-specific URLs, add each required language path, for example:
/en/contact/
/uk/kontakty/

Accessibility and feedback
KOZ Copy Actions can:

Add keyboard focus to matching non-interactive elements.
Add button semantics and an accessible label where appropriate.
Support activation with Enter or Space.
Show an optional copy icon.
Show localized success or error messages.
Position feedback at the bottom centre, bottom left or bottom right.
Preserve formatting or collapse repeated whitespace.
Prevent navigation when a matching link is used as a copy action.

Multilingual sites and translations
The plugin is internationalized with the koz-copy-actions text domain.
Admin labels and frontend messages such as Copied, Could not copy and Copy to clipboard use WordPress translation functions and remain compatible with the standard WordPress.org translation system.
Version 1.1.13 also includes the KOZ Suite runtime language baseline: Ukrainian, Chinese, Spanish, Arabic, Indonesian, Portuguese, French, Japanese, German and Hindi, with English fallback. The WordPress user locale controls the administration interface. On the frontend, supported language-prefixed routes use the matching bundled copy feedback language.
The copy logic itself is language-independent: it works with the rendered content of the current page, so the same selector configuration can be used with multilingual plugins and translated pages.
If your multilingual setup uses different URL paths for each language and you use Allowed paths, add the corresponding path for each language.
KOZ Copy Actions does not translate the content being copied. It copies the value or text that is already rendered on the current page.
Privacy
Clipboard operations happen in the visitor’s browser.
The plugin does not:

Store copied values.
Store IP addresses or visitor identifiers.
Set tracking cookies.
Send analytics or telemetry.
Make external requests for copy functionality.

Compatibility notes
KOZ Copy Actions can detect another active clipboard plugin and warns administrators before two copy handlers are enabled on the same elements.
Compatibility with historical UA FREE Copy settings and frontend data attributes is retained for existing installations, but new installations do not need to configure or know about the former package.

延伸相關外掛

文章
Filter
Mastodon