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.
KOZ Copy Actions is one focused module of the broader KOZ Suite, a family of WordPress plugins that share a common KOZ administration experience and visual identity.
Each KOZ plugin remains independent, so site owners can install only the modules they need or combine several modules into one lightweight toolkit.
Current public KOZ plugins:
Additional KOZ Suite modules are used in production and may be published separately as they are prepared for public distribution.
Example selector:
.copy-me
If your page contains:
<span class="copy-me">PROMO-2026</span>
the visitor can copy PROMO-2026 by activating that element.
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.
<button class="copy-me" data-copy-value="PROMO-2026">Copy promo code</button>
Copied value: PROMO-2026
2. Another element with data-copy-target
Use a local ID reference beginning with #.
<input id="account-number" value="UA123456789">
<button class="copy-me" data-copy-target="#account-number">Copy account number</button>
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.
For safety and predictable behaviour, settings accept simple selectors only:
.copy-me#copy-code[data-copy-value], [data-copy-target], [data-copy-key] and [data-uafree-copy]Add one selector per line. Duplicate entries are removed automatically.
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/
KOZ Copy Actions can:
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.
Clipboard operations happen in the visitor’s browser.
The plugin does not:
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.