Beschrijving
Copy Anything to Clipboard helps visitors copy text, links, coupon codes, commands, email addresses, AI prompts, and code snippets in one click—no awkward text selection on mobile, no broken formatting in the clipboard.
Use it on blogs, docs, WooCommerce and deal sites, SaaS landing pages, tutorials, and support hubs where you want fewer “how do I copy this?” questions and smoother sharing of URLs, promos, and technical steps.
Why site owners install it
- Better UX – Especially on touch devices, a dedicated copy control beats “long-press to select.”
- Higher intent actions – Coupon codes, affiliate links, and checkout snippets convert better when copying is frictionless.
- Flexible placement – Target elements automatically, or drop shortcodes/blocks only where you need them.
Integration options
- Global Injector – Rules that match CSS selectors (e.g.
pre,code,.coupon) plus display conditions and live preview. - Classic CSS selector rules – Site-wide automatic copy buttons for matching markup.
- Shortcodes –
[copy](alias:[ctc]) for precise placement in the editor, widgets, and templates. - Elementor – 25+ widgets for common patterns (code, coupon, email, prompt, deal link, and more).
- Gutenberg – Native blocks for the block editor.
Highlights
- Button, Icon, and Cover presets; copy as plain text or HTML where supported.
- Performance-minded – Combine display conditions with how you publish rules so assets run where copy UI is actually used.
- Works with typical WordPress stacks – Themes, builders, and caching setups; mobile and modern desktop browsers.
Hoe te gebruiken
You can add copy buttons anywhere on your WordPress site using one of the following methods:
-
EASY: Shortcodes
Manually add copy controls with[copy]anywhere in your content. -
AUTOMATIC: Global Injector
Automatically inject copy buttons into any element using CS selectors likepre,code,blockquote, or any custom selector with advanced display conditions. -
Elementor Widgets
Add copy buttons visually using dedicated Elementor widgets. -
Gutenberg Blocks
Insert copy buttons directly inside the WordPress block editor using Gutenberg blocks.
METHODE 3 – Handmatig met “Shortcodes”
Use [copy] anywhere you want an explicit copy control (Classic editor, Shortcode block, widget areas, patterns, or PHP templates via do_shortcode()). [ctc] is the same shortcode with a shorter name—use either.
How it works (matches the plugin code)
- Default layout is the inline preset (clickable text + icon). Switch with
preset="button",preset="icon", orpreset="cover". text="…"(or text wrapped between[copy]and[/copy]) is what lands on the clipboard.display="…"overrides the visible label when it must differ from the copied string (masked secrets, mailto links, etc.).- Legacy pair:
text="…"+content="…"—contentis copied,textis what visitors see (handy for hiding long URLs behind a short CTA).
Try it on a fresh install — add a Shortcode block (or switch the block editor to Code editor), paste one snippet, Update, view the page, and tap the control.
Example 1 – Datetime inside a sentence
Next live workshop: [copy]2030-03-19 10:00 America/New_York[/copy] — copy the full value for your calendar tool.
Example 2 – Email inside a sentence
Billing questions? Email [copy][email protected][/copy] and include your order ID.
Example 3 – Show the mailbox, copy a ready-made mailto link
[copy display="[email protected]"]mailto:[email protected]?subject=Question%20from%20website[/copy]
Visitors see [email protected]; the clipboard receives the full mailto: string with the subject line.
Example 4 – Mini support block (swap in your real IDs)
Before you open a ticket, include:
- Order ID: [copy]WC-104592-UK[/copy]
- Line item SKU: [copy]BM-HOODIE-M-NVY[/copy]
- Return auth: [copy]REF-88C0A921[/copy]
Example 5 – Coupon inside marketing copy
Launch week only — use [copy]SPRINGLAUNCH26[/copy] at checkout for 25% off your first year.
Example 6 – Long store URL, short friendly label
[copy text="https://www.amazon.com/dp/B0D1EXAMPLE/ref=nosim?tag=clipboard0d-20"]Copy our Amazon pick[/copy]
The visitor reads Copy our Amazon pick; the clipboard gets the full tagged URL.
Example 7 – Carrier-style tracking number
Track this shipment: [copy]1Z999AA10123456784[/copy]
Example 8 – Developer onboarding (framework installer)
Run this once: [copy]npx create-next-app@latest my-shop --typescript --eslint --tailwind --app[/copy]
Example 9 – One-line WP-CLI maintenance
Safe cache flush: [copy]wp cache flush && wp rewrite flush[/copy]
Example 10 – API key visible on screen vs clipboard
Production key (rotate after testing): [copy text="sk_live_51QxYzAbCdEfGhIjKlMnOpQrStUvWx0123456789" display="sk_live_…6789"]
Visitors only see the shortened mask; the full secret is still copied once for trusted teammates.
Example 11 – Guest Wi‑Fi card
SSID: [copy]Guest-Office-5G[/copy] · Passphrase: [copy text="WinterLake#2026!" display="••••••••••••"]
Example 12 – Teams / Meet style link
Join the stand-up: [copy]https://teams.microsoft.com/l/meetup-join/19%3ameeting_EXAMPLE%40thread.v2/0?context=%7b%22Tid%22%3a%22...%7d[/copy]
Example 13 – Conference hashtag or emoji drop
Share photos with [copy]#ClipboardAgencyLive2026[/copy] — we monitor that tag all week.
Example 14 – Button preset (big tap target, copies a long shell line)
[copy preset="button" button-text="Copy Docker install" text="curl -fsSL https://get.docker.com | sh"]
Example 15 – Icon-only control in a tight layout
Docker CE (Ubuntu): [copy text="sudo apt-get install docker-ce docker-ce-cli containerd.io" preset="icon" tooltip="Copy apt install line"]
Example 16 – Optional open-after-copy URL (great for coupons)
[copy preset="button" text="SAVE20" button-text="Copy code & checkout" redirect="https://clipboard.agency/checkout/?coupon=SAVE20"]
Example 17 – Cover preset for a code/card preview
[copy preset="cover" text="body { margin: 0; font-family: system-ui, sans-serif; }" button-text="Copy CSS"]body { margin: 0; … }[/copy]
The visible card shows the shortened preview; the overlay copies the full CSS string.
Example 18 – Legacy `text` + `content` pair (same idea as Example 6)
[copy text="Open the parking map" content="https://maps.app.goo.gl/dQw4w9WgXcQ"]
Example 19 – Bank-style reference (dummy data)
SEPA reference: [copy]RF18539007547034[/copy]
Example 20 – Plain JSON snippet for API testers
Paste this body: [copy]{ "event": "signup", "plan": "pro", "trial_days": 14 }[/copy]
METHOD 2 – Global Injector (NEW in v5.0.0)
The Global Injector is the most powerful way to automatically add copy buttons anywhere on your website.
It allows you to target elements using CSS selectors and control exactly where the copy buttons appear.
Key Capabilities
- Display Conditions – Show copy buttons only on specific pages, posts, categories, or custom conditions.
- Multiple Style Presets – Choose from Button, Icon, or Cover styles with live preview.
- Advanced Targeting – Precisely target elements using CSS selectors such as
pre,code,blockquote, and more. - Performance Optimized – Plugin assets load only on pages where copy buttons are used.
How to Use Global Injector
- Go to Copy to Clipboard Global Injector in your WordPress dashboard.
- Click Add New Injector.
- Enter the CSS selector you want to target (for example:
pre,code, orblockquote). - Select a style preset – Button, Icon, or Cover.
- (Optional) Configure Display Conditions to control where the copy button appears.
- Click Save and preview the changes on your site.
METHODE 2 – Automatisch met “CSS selector”
This is the quickest and most commonly used method. It automatically adds copy buttons to all elements that match a specific CSS selector.
Use this method when you want copy buttons to appear automatically across your entire website without manually adding them to each element.
Voorbeelden
Example 1 – Code Snippets
If your posts contain code snippets inside the <pre> tag, simply set the selector to pre (without the angle brackets < and >).
The plugin will automatically add a copy button to every <pre> element, allowing visitors to copy code snippets with one click.
Example 2 – Blockquotes
If you want users to copy quotes from your blog posts, set the selector to blockquote (without the angle brackets < and >).
A copy button will automatically appear for all blockquote elements on your site.
You can target any HTML element or custom class using CSS selectors such as:
pre– If your posts contain code snippets inside the<pre>tag.code– If your posts contain code snippets inside the<code>tag.blockquote– If you want users to copy quotes from your blog posts..coupon-code– If your posts contain coupon codes..email-address– If your posts contain email addresses..copy-this– If you want to copy specific content.
Hoe te gebruiken met CSS-selector
- Go to Copy to Clipboard in your WordPress dashboard.
- Click the Add New button.
- Enter the CSS selector you want to target (for example:
preorblockquote). - Click Create to save the selector.
- Visit your page and you will see the copy button automatically added to the targeted elements.
For more detailed guides:
METHODE 4 – Handmatig met “Elementor widgets”
The plugin includes multiple Elementor widgets that allow you to easily add copy buttons to specific content on your page.
Simply drag and drop a widget and configure the content you want visitors to copy.
These widgets are useful for many types of content including:
- E-mails
- ChatGPT / AI prompts
- Coupon codes
- Deals and affiliate links
- Inspirational quotes
- Contact information
- Adressen
- Social media posts
- Commands and technical code
- Passwords and secure values
- Notes, reminders, and checklists
- Blog content and educational materials
- Hashtags and social media resources
- Research notes and documentation
- Travel information and packing lists
- Personal messages and quotes
You can explore live examples for all widgets here:
Hoe gebruik je dit met Elementor widgets
- Install and activate the Elementor plugin.
- Open a page and click Edit with Elementor.
- Search for the widget (for example: Copy).
- Drag and drop the widget onto the page.
- Enter the content you want users to copy.
- Publish the page and test the copy button.
For full examples and widget demos:
Belangrijkste voordelen
- Global Injector – Selector-based rules, display conditions, and live preview from the admin.
- One-click copy – No manual selection; clearer affordances for code, coupons, and contact fields.
- Multiple presets – Button, Icon, and Cover layouts to fit dense UI or minimal docs.
- Builder-native – Deep Elementor coverage plus Gutenberg blocks for modern sites.
- Shortcodes –
[copy]/[ctc]for surgical placement in the classic editor, widgets, and templates. - Mobile and cross-browser – Tested behavior on common phones and current Chrome, Firefox, Safari, and Edge.
- Lightweight by design – Pair rules with conditions so you are not loading UI where it is unused.
- PRO – Extra customization, behavior options, and analytics when you need to scale or brand the experience.
PRO adds advanced customization and analytics. Compare plans:
https://clipboard.agency/pricing/
Trusted by thousands of WordPress sites
10,000+ active installs rely on Copy Anything to Clipboard for docs, deals, dev blogs, and support content. It is built to cooperate with popular themes and page builders (including Elementor) instead of fighting your layout.
Feature requests
Ideas and edge cases help the roadmap. Share yours:
https://clipboard.agency/contact/
Installation, Elementor, Gutenberg, performance, and HTML vs plain text are covered in the FAQ tab on this plugin page.
Google Chrome extensie
We also provide a Google Chrome extensie that allows users to quickly copy content from any website.
Chrome Web Store: https://chromewebstore.google.com/detail/copy-anything-to-clipboar/mdljigkhfeiobmhanibkgjkldnabeahl
The extension works perfectly alongside the Copy Anything to Clipboard WordPress plugin, making it easy to copy text, links, commands, code snippets, and more across the web.
Lees verder
- Website: https://clipboard.agency/
- Documentation: https://clipboard.agency/doc/
- Live demos: https://clipboard.agency/#demos
- Support: https://clipboard.agency/contact/
- More plugins (WordPress.org profile): https://wordpress.org/plugins/search/clipboardagency/
If the plugin saves you time, you can support ongoing development here:
https://www.paypal.me/mwaghmare7/
Blokken
This plugin provides 4 blocks for the WordPress block editor:
Copy Icon
Add a small icon that lets users quickly copy text or code to the clipboard.
Copy Button
Add a visible button that allows users to copy content with one click.
Term Title
Display the title of the current taxonomy term such as category or tag.
Sociaal delen
Allow visitors to quickly share content across social media platforms.
Blokken
Deze plugin heeft 4 blokken.
- Copy Icon Allow user to copy code with an icon.
- Copy Button Allow user to copy code with a button.
- Social Share Allow user to share content on social media.
- Term Title Display the title of the term.
Installatie
You can go from zero to working copy buttons in a few minutes—install the plugin, activate it, then add either a Global Injector rule or a shortcode on a test page.
- Install Copy Anything to Clipboard from this directory, or upload the plugin folder to:
wp-content/plugins
-
De plugin via het plugins menu in WordPress activeren.
-
Go to WordPress Admin Copy to Clipboard.
-
Choose one of the following methods to add copy buttons:
-
Global Injector (Recommended)
Automatically inject copy buttons using CSS selectors and display conditions. -
CSS Selector
Automatically add copy buttons to elements likepre,code, orblockquote. -
Shortcodes
Manually add copy controls using[copy]or[ctc]. -
Elementor Widgets
Drag-and-drop widgets for Elementor page builder. -
Gutenberg Blocks
Use native WordPress blocks for copy buttons and icons.
For full setup instructions, read the documentation:
https://clipboard.agency/doc/
FAQ
-
What is the Global Injector?
-
The Global Injector (from v5.0.0) adds copy controls wherever matching elements appear. You define a CSS selector (for example
pre,code, or.promo-code), pick a Button, Icon, or Cover preset, optionally set display conditions, and preview before saving. Open WordPress Dashboard Copy to Clipboard Global Injector. -
Create a Global Injector rule or a classic CSS selector entry with selector
preorcode, choose a style, save, and matching code blocks get a copy control (subject to your display conditions). -
Yes. Use display conditions in Global Injector, or use shortcodes only where you need them (
[copy]or[ctc]). -
Does this plugin work with Elementor?
-
Yes. With Elementor active, edit a page, search the panel for Copy, and use the dedicated widgets (copy button, code snippet, coupon, prompts, and more).
-
Does this plugin work with Gutenberg?
-
Yes. Insert the bundled blocks (for example Copy Button and Copy Icon) from the block inserter.
-
Can I customize how the copy control looks?
-
Yes—styles, colors, placement, and labels are configurable in the admin. Global Injector includes a live preview. Deeper styling and analytics are part of PRO.
-
Use display conditions in Global Injector to limit rules by post type, taxonomy, individual content, user role, and more so design and asset loading stay intentional.
-
Is the plugin mobile friendly?
-
Yes. Copy actions are built for phones and tablets as well as desktop.
-
Does it work in all browsers?
-
Yes. Current versions of Chrome, Firefox, Safari, and Edge are supported.
-
Will this plugin slow down my website?
-
It is built to stay lightweight. Combine display conditions with how you scope rules so scripts and styles load where copy UI is actually used.
-
Can the plugin copy HTML as well as plain text?
-
Yes. Depending on settings and shortcode attributes, content can be copied as plain text or HTML, which helps with code snippets and formatted excerpts.
-
Where can I read documentation or get support?
-
Guides: https://clipboard.agency/doc/ — Contact: https://clipboard.agency/contact/
Beoordelingen
Bijdragers & ontwikkelaars
“Copy Anything to Clipboard for WordPress – Copy Button, Copy Text & Copy Code” is open source software. De volgende personen hebben bijgedragen aan deze plugin.
Bijdragers“Copy Anything to Clipboard for WordPress – Copy Button, Copy Text & Copy Code” is vertaald in 4 localen. Dank voor de vertalers voor hun bijdragen.
Interesse in ontwikkeling?
Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.
Changelog
5.5.2
- Fix: [copy] shortcode display with
contentattribute and inner markup – When the legacycontentattribute sets the clipboard payload and the shortcode also wraps inner content (for example[copy content="/path/to/file"]Install path[/copy]), the visible label now uses the inner content fordisplaywhiletextremains what gets copied. Previously the label could fall back to the same value ascontentand ignore the wrapped text. - Improvement: Compatibility to WordPress 6.9.4 – The plugin is now compatible with WordPress 6.9.4 and the latest Gutenberg plugin.
5.5.1
- Fix: Highlight.js / code block copy formatting – Copy buttons added via Global Injector to
preandcodeblocks (including themes using Highlight.js, such as the setup on zanglikun.com) now preserve indentation and whitespace when copying, so Java / PHP / shell snippets paste exactly as shown instead of being flattened into a single left-aligned block. Thanks to Likun Zang for reporting the issue. - Fix: [copy] shortcode in table cells –
[copy]inside table plugins (Data Tables Generator by Supsystic, wpDataTables) now works correctly. Scripts and styles load when the table shortcode is on the page, and copy controls work with cached or dynamically rendered table content. Thanks to @jayceezay for reporting. See: https://wordpress.org/support/topic/copy-shortcode-in-table-cells-not-working-anymore/ - Fix: Thrive Architect HTML block integration – Copy buttons rendered inside a Thrive Architect HTML block (for example, custom blockquotes with
ctc-wrappermarkup) are now reliably detected and bound by the frontend script, so clicking the button correctly copies the content even when the HTML is pre-rendered or cached. - Improvement: Shortcode copy buttons (event delegation) – Copy buttons from
[copy]shortcodes now use document-level event delegation, so buttons added dynamically (e.g. by table plugins after page load) remain clickable. - Improvement: Code / pre support in Global Injector – Global Injector rules targeting
pre/codeelements now integrate more safely with external highlighters and pre-rendered content, ensuring the “Copy Anything to Clipboard” behavior stays consistent without breaking existing theme or page builder output.
5.5.0
- New: Gutenberg block analytics (Pro) – Copy events from all Gutenberg copy blocks (Copy to Clipboard Icon, Copy Icon, and Copy Button) are now tracked as
source = 'gutenberg-block'in the same analytics table. Pro Analytics dashboard shows a three-way source breakdown (Global Injector, Shortcodes, Gutenberg Blocks) and a Block by page view so you can see which pages drive the most Gutenberg block copy events. - Improvement: Gutenberg block tracking – Gutenberg copy block output includes
data-ctc-analyticsanddata-ctc-source="gutenberg-block"; frontend sends analytics toPOST /ctc/v1/analytics/eventsafter each copy (non-blocking). Block scripts and styles still load only when the relevant block is present on the page.
5.4.2
- Fix: Icon block frontend scripts only load when block is present – Icon block (Copy to Clipboard) styles and copy script are now enqueued only on pages that contain the Icon block, using
has_block( 'copy-the-code/icon' ). This avoids loading assets on every page and improves performance when the block is not used.
5.4.1
- New: Telemetry opt-in – Anonymized usage data can be shared to help improve the plugin. Opt-in is available from the welcome notice and via Settings Dashboard; data is sent only when enabled and is cleaned on uninstall.
- Improvement: Copy-by-source analytics and telemetry summary (Pro) – Analytics now includes a breakdown by copy source and a telemetry summary for opted-in usage insights.
- Improvement: Uninstall cleanup – Telemetry and related options are removed when the plugin is uninstalled.
- Fix: Freemius not loading – Resolved an issue where Freemius SDK could fail to load in some environments.
5.4.0
- New: Shortcode analytics + per-shortcode opt-out (Pro) – Shortcode-based copy events are now tracked as
source = 'shortcode'with post and page context, alongside Global Injector events. You can disable tracking for specific shortcodes via ananalyticsattribute (for example,[copy analytics="off"]Code[/copy]still copies but does not record analytics for that instance). - New: Source breakdown & shortcode-by-page (Pro) – The detailed Analytics endpoint now includes a Global Injector vs Shortcodes source breakdown and a shortcode-by-page view so you can see which pages and shortcodes drive the most copy events.
- Improvement: Volume vs Prior card accuracy – The Volume vs Prior card now shows
/ N prevwhenever previous-period data exists (including0), reserving-- prevonly for truly missing data, and uses clearer trend labels for trending vs lagging periods. - Improvement: Free vs Pro previews in Analytics UI – Free users see a blurred preview for Pro-only source breakdown data so the UI is no longer misleading; Pro users see real counts, percentages, and growth.
- Improvement: Version consistency & cache-busting – Unified plugin version across the header,
CTC_VERconstant, core class, composer, and readme. Release tooling (npm run version:check/version:set) now fails on mismatches and keeps all version fields in sync, preventing stale assets and updater drift. - Fix: Coupon widget copy button label – The Elementor coupon widget now passes the correct config keys to the shared copy button helper, and the helper accepts both legacy (
copy_button_text) and new (button_text) keys so the custom button text from widget settings always renders as expected. - Fix: Preserve zero-valued style settings – Global Injector rule meta now treats saved
'0'values (e.g. blur, border width, padding) as valid instead of falling back to defaults, so zero-style configurations are applied consistently after saving. - Security: Safer external links – All plugin-generated links that open in a new tab (
target="_blank") now includerel="noopener noreferrer"to guard against reverse-tabnabbing and improve cross-window isolation. - Security: Pro analytics limited to admins – Pro analytics REST endpoints now require the
manage_optionscapability, preventing non-admin users from accessing analytics data even if they obtain a valid REST nonce. - Security: Analytics abuse protections – The public analytics event endpoint (
POST /ctc/v1/analytics/events) now enforces per-IP rate limiting and strict payload validation, returning429on abusive bursts and400for invalid event data to protect thectc_analyticstable. - Improvement: Analytics timezone normalization – Analytics events and query windows now consistently use UTC for
created_atand date ranges, preventing shifted 24h/7d/30d boundaries on non-UTC sites. - Improvement: Analytics retention & cleanup – Older analytics events beyond roughly 13 months are now pruned in small batches by a daily scheduled cleanup job (retention days and batch size are filterable), keeping the
ctc_analyticstable fast while still supporting long-range comparisons. - Fix: Emojis in code blocks now copied correctly – WordPress renders emojis as
<img class="emoji">elements; the copy logic now converts these to theiralttext so emojis are included in the copied content. Thanks @jayceezay
5.3.1
- Fix: [copy] shortcode with formatted content – When the shortcode encloses formatted text (e.g. bold), the front end now displays the formatting and copies plain text to the clipboard. Display uses allowed HTML (filterable); copy uses plain text unless
copy-as="html". Thanks @jayceezay - New (developer): Filter
ctc/shortcode/display_allowed_htmlto customize allowed HTML for shortcode display content (e.g. add custom markup support).
5.3.0
- New: Analytics (Pro) – See what gets copied. Copy tracking for Global Injector rules: track copy events per rule (rule ID, timestamp, success; no content stored). Analytics dashboard at Settings Analytics: summary cards (total copies, active rules, top rule, % change), date range filter (24h, 7d, 30d, custom), activity chart, top rules table. Export CSV (Pro).
- New: Activity column in Main Rule List – Copy count and 24h % change per rule. Free: count + blurred trend + Pro CTA; Pro: real trend. Link from Activity to Analytics filtered by rule.
- New: REST API for analytics –
POST /ctc/v1/analytics/events(public, for frontend tracking); GET endpoints and export for authenticated Pro users. - Improvement: Global Injector – Analytics option/link in rule editor and dashboard to open Analytics page (filtered by rule when applicable).
5.2.0
- New: Copy As (Clipboard Type) – Choose what gets copied per rule: Text only, HTML, Text + HTML (default), Image (Pro), JSON (Pro), SVG (Pro). Global Injector Rule Editor includes “Copy as” section; shortcode and Gutenberg blocks support
copy-asattribute. Uses CTC CopyEngine with Clipboard API; fallbacks for image (HTTPS/CORS) and legacy browsers. - New: Image format for Copy As Image (Pro) – Choose PNG, JPEG, or WebP when copying as image. Pro adds Image format selector in Copy As section; free plugin provides
ctc.globalInjector.copyAs.afterhook for extensibility. - Improvement: Copy As extensibility – Free plugin now uses
ctc.globalInjector.copyAs.afterhook; Pro plugin renders Image format UI (PNG/JPEG/WebP) when Copy As is Image Blob. Follows Rank Math free/Pro pattern. - Improvement: Pro extension points – Added
ctc/global_injector/rule_enum_fields,ctc/global_injector/rest_rule_datafilters;ctc.globalInjector.fieldsToComparefor unsaved-changes detection. Pro adds image_format via extend_meta_mapping, extend_admin_rule_data, extend_frontend_rule_data. - New: ImageFormatSection (Pro) – Pro component for Image format selection with ButtonGroup and docs link.
- Fix: Image format persistence – Image format selection now persists after save and page refresh (load_rules and REST get_rule_data include image_format when Pro is active).
5.1.0
- New: Main Rule List – Custom rules UI at Settings Global Injector (
page=ctc-rules): table with Status toggle, Rule Name/Target, Visual Style, Location; row actions Edit, Duplicate, Delete; search and status filter; empty state. - New: Dashboard (Home) – Copy to Clipboard dashboard at
page=ctc(Settings Copy to Clipboard). - New: Shared admin components – AdminHeader, ConfirmModal, Footer, Icons, ProBadge used by Dashboard, Main Rule List, and Rule Editor.
- Improvement: Rule Editor – Header uses shared AdminHeader with back link to Global Rules list.
- Improvement: Legacy CPT redirects – “Add New” and list edit links for
copy-to-clipboardredirect to Global Injector. - Developer:
get_admin_rules()API for admin list data; Main Rule List and Dashboard use React + Tailwind under.ctc-admin-root. - Improvement: Global Injector CSS from PHP – Global Injector styles (Button, Icon, Cover) are now output as minified inline CSS from PHP via the new Inline_CSS class. Only the styles and positions used by active rules are included; the
ctc/global_injector/inline_cssfilter still applies to the final CSS. - Fix: Cover style fatal error – Added missing
get_global_injector_css()method to the Cover style class so inline CSS builds correctly when Cover style is used (fixes “Call to undefined method Cover::get_global_injector_css()”). - New: Admin bar quick-edit for Global Injector – When viewing a page where Global Injector rules apply, admins see a “CTC” item (with clipboard icon) in the admin bar. Sub-items list “Edit: [Rule name]” for each rule on the page and open the Global Injector settings with that rule selected.
- Improvement: Global Injector URL support – The settings page now supports a
?rule=IDquery parameter to open the editor with a specific rule selected (e.g. from the admin bar or bookmarks). Addedget_selected_rule_id()helper. - New: Shortcode
redirectattribute – The[copy]shortcode now supports aredirectattribute for copy-then-redirect flows (e.g.[copy redirect="https://store.com"]CODE10[/copy]). After copying, the user is sent to the given URL. The existinglinkattribute remains supported for backward compatibility and has the same effect asredirect. - Fix: Shortcode display text with inner content – When both
textand inner content are present (e.g.[copy text="Hello World"]Copy this[/copy]), the visible label now uses the inner content (“Copy this”) andtextis used only for the copy payload. Previously the label showed thetextvalue. - Fix: Native preset CSS when using tag=”a” – Using
tag="a"for link-style copy buttons now correctly loads the native preset CSS so theme link styling is applied. - Fix: Shortcode
linkattribute redirect – The “Copy & Redirect” / “Combining Multiple Attributes” flow now works: whenlink="https://example.com"is set, the shortcode outputsdata-ctc-linkand the frontend opens the URL in a new tab after a successful copy (e.g. after “Copied! Redirecting…”). - Improvement: Shortcode performance – Inline CSS for the shortcode is now output only for presets actually used on the page (inline, native, button, icon, cover), and the CSS is minified to reduce payload size.
- Improvement: Global Injector rules sidebar – When opening the settings page with a specific rule (e.g.
?rule=318), the selected rule is now scrolled to the top of the rules list within the sidebar only, without scrolling the whole page or moving the admin header out of view. - Fix: Giant copy icons in tables – Added explicit
widthandheightattributes (24×24) to all Global Injector SVG icons (Button, Icon, and Cover styles) so theme CSS cannot scale them unexpectedly inside table cells. Thanks @akashathu
5.0.1
Bug fixes and support issues (post-5.0.0) — Thanks to the users who reported these on the support forum.
- Fix: 404 on ctc.js – Moved script to
assets/frontend/js/lib/ctc.js(renamed from vendor/ to avoid .gitignore conflict). Global Injector and shortcode enqueue the copy engine; fallbacks remain when script is unavailable. Thanks @contemplate - Fix: Giant copy icons in tables – Copy icons inside table cells no longer scale with table font-size. Added CSS constraints for shortcode and block copy icons when inside
tableelements. - Fix: Square brackets in shortcode content – Legacy shortcodes using
content="... [...] ..."now copy the correct[and]characters. Thecontentattribute is decoded from HTML entities before use. - Fix: Shortcode script loading – Shortcode frontend script no longer depends on the removed vendor script; it loads independently with Clipboard API fallbacks.
5.0.0
🚀 Major Release – Global Injector & Complete Refactor
- New: Global Injector – Advanced copy button injection system with:
- Display conditions to control where copy buttons appear
- Multiple style presets (Button, Icon, Cover)
- Live preview in the editor
- Performance-optimized asset loading
- New: Refined Shortcode System – Enhanced
[copy]/[ctc]shortcodes with improved attributes and flexibility. - New: Style Presets – Pre-built button, icon, and cover styles for quick setup.
- Improvement: WordPress 6.7+ Compatibility – Fixed
_load_textdomain_just_in_timenotices with proper plugin initialization timing. - Improvement: Complete Asset Restructure – Reorganized frontend and admin assets for better performance.
- Improvement: Gutenberg Block Enhancements – Fixed block registration and optimized editor asset loading.
- Improvement: Freemius SDK Integration – Improved SDK initialization with proper hook timing.
- Improvement: Code Quality – Major codebase refactoring with improved naming conventions and standards.
- Fix: Block Editor Assets – Resolved “invalid category” warnings for Gutenberg blocks.
- Fix: Frontend Script Loading – Fixed 404 errors for clipboard scripts after asset restructure.
- Fix: Square Brackets in Shortcode – Fixed HTML entities (
[]) not being decoded properly incontentattribute. Thanks @akashathu - Fix: CSS var() Double Dashes – Fixed WordPress converting
--to en-dash inside CSSvar()functions likevar(--wp--preset--color--bg). Thanks @mikecargal - Fix: Legacy Shortcode
contentAttribute – Restored proper handling wherecontentattribute contains the text to copy andtextattribute is the display text. - New: Native Anchor Support – Added
tag="a"parameter to use theme’s anchor styling instead of custom CTC styling. - New: Icon Toggle – Added
show-icon="no"parameter to hide the copy icon when not needed. - Developer: New Architecture – Modular class-based architecture for better extensibility.
4.1.2
- Fixed: iOS 26 compatibility issue by migrating from deprecated
document.execCommand('copy')to modern Clipboard API (navigator.clipboard.writeText()). - Improvement: Added fallback support for older browsers that don’t support the Clipboard API.
- Improvement: Enhanced clipboard functionality across all copy methods (CSS selector, shortcode, Elementor widgets, and Gutenberg blocks).
4.1.1
- Fix: Dependency build failed.
4.1.0
- Improvement: Updated Freemius SDK library with version 2.13.0.
- Improvement: Updated plugin metadata for compatibility with WordPress 6.8.
- Improvement: Enhanced readme content, tags, and FAQ for better search visibility.
4.0.5
- Improvement: Updated Freemius SDK library with version 2.11.0.
- Verbetering: compatibiliteit met WordPress 6.7.2.
4.0.4
- Fixed: Disallow to add script for the contributor level user in the shortcode.
- Verbetering: Freemius SDK bibliotheek geüpdatet met versie 2.9.0.
- Verbetering: compatibiliteit met WordPress 6.7.1.
4.0.3
- Hot fix: de afhankelijkheid werkt niet voor berichttypen.
4.0.2
- Fix: The js dependency not works for the shortcode.
4.0.0
- New: Added the Gutenberg block “Term Title”.
- New: Added the Gutenberg block “Social Share”.
- New: Added the Gutenberg block “Copy Button”.
- Nieuw: Gutenberg blok “Kopieer icoon” toegevoegd.
- Improvement: Updated Freemius SDK library with version 2.7.4.
- Verbetering: compatibiliteit met WordPress 6.6.1.
3.8.3
- Improvement: Updated the recurring cron job registration logic.
3.8.2
- Fixed: Elementor copy button not works due to missing dependency.
3.8.1
- Fixed: The copy animation not works for the shortcode.
- Verbetering: compatibiliteit met WordPress 6.5.3.
3.8.0
- New: Added display conditions for the copy to clipboard to load the assets only on selected pages.
- Improvement: Fixed the copy icon Gutenberg block title issue.
- Improvement: Loading the Gutenberg block assets only on the block used pages.
- Improvement: Added default copied button text.
- Verbetering: compatibiliteit met WordPress 6.5.2.
3.7.0
- New: Added the copy icon Gutenberg block.
3.6.0
- New: Added the target selector support for the copy content in the Elementor widget.
- Improvement: Added to support to copy the markup content from the Copy Icon Elementor widget.
3.5.2
- Improvement: Added the dynamic content support for email, phone, and address Elementor widgets.
- Verbetering: compatibiliteit met WordPress 6.4.3.
3.5.1
- Improvement: Added the background image support for all the Elementor widgets.
- Verbetering: Freemius SDK bibliotheek geüpdatet met versie 2.6.2.
3.5.0
- Nieuw: de Elementor widget “Contactgegevens” toegevoegd.
- Verbetering: compatibiliteit met WordPress 6.4.2.
3.4.3
- Opgelost: de shortcode kopieert de displaytekst in plaats van de inhoud.
3.4.2
- Improvement: Added the shortcode support for the Elementor widget.
- Improvement: Added the missing table widget in the Elementor category.
3.4.1
- Fix: The button customization is not working in the dashboard screen.
3.4.0
- New: Added table Elementor widget to display content in horizontal, or vertical table and allow to copy the content.
3.3.0
- New: Added button styling support for Elementor widget Copy Icon.
- New: Added button styling support for Elementor widget Copy Button.
- New: Added button styling support for Elementor widget Email Sample.
- New: Added button styling support for Elementor widget Email Address.
- New: Added button styling support for Elementor widget Phone Number.
- New: Added button styling support for Elementor widget Blockquote.
- New: Added button styling support for Elementor widget Code Snippet.
- Nieuw: ondersteuning voor knopstyling toegevoegd voor Elementor widget bericht.
- Nieuw: ondersteuning voor knopstyling toegevoegd voor Elementor widget deal.
- Nieuw: ondersteuning voor knopstyling toegevoegd voor Elementor widget waardebon.
- New: Added button styling support for Elementor widget AI Prompt Generator.
- Verbetering: Freemius SDK versie 2.6.0 geüpdatet.
3.2.1
- Improvement: Improved the Elementor “Coupon Code” widget controls and structure.
- Improvement: Improved the Elementor “Deal” widget controls and structure.
- Improvement: Improved the Elementor “Email Address” widget controls and structure.
- Improvement: Improved the Elementor “Email Sample” widget controls and structure.
- Improvement: Improved the Elementor “Message” widget controls and structure.
- Improvement: Improved the Elementor “Phone Number” widget controls and structure.
- Improvement: Improved the Elementor “Shayari” widget controls and structure.
- Improvement: Improved the Elementor “SMS” widget controls and structure.
- Improvement: Improved the Elementor “Wish” widget controls and structure.
3.2.0
- New: Added the Elementor widget category “Copy Anything to Clipboard”.
- Verbetering: compatibiliteit met WordPress 6.4.1.
- Improvement: Improved the Elementor “AI Prompt Generator” widget controls and structure.
- Improvement: Improved the Elementor “Blockquote” widget controls and structure.
- Improvement: Improved the Elementor “Code Snippet” widget controls and structure.
- Improvement: Improved the Elementor “Copy to Clipboard Button” widget controls and structure.
- Improvement: Improved the Elementor “Copy to Clipboard Icon” widget controls and structure.
3.1.0
- New: Added inline-style copy shortcode for paragraph-level snippets (unified under
[copy]in v5+). - Nieuw: toegevoegd Elementor widget kopieer pictogram.
- Nieuw: Elementor widget kopieer knop toegevoegd.
- Nieuw: Elementor widget E-mail voorbeeld toegevoegd.
- Nieuw: Elementor widget e-mailadres toegevoegd.
- Nieuw: Elementor widget telefoonnummer toegevoegd.
- Nieuw: Elementor widget blockquote toegevoegd.
- Nieuw: Elementor widget code snippet toegevoegd.
- Nieuw: Elementor widget bericht toegevoegd.
- Nieuw: Elementor widget deal toegevoegd.
- Nieuw: Elementor widget waardebon toegevoegd.
- Nieuw: Elementor widget AI prompt generator toegevoegd.
3.0.0
- Nieuw: verbeter de dashboard UI met het nieuwe ontwerp.
- Improvement: Added the support to edit the existing copy to clipboard post.
- Verbetering: compatibiliteit met WordPress 6.3.2.
- Verbetering: Freemius SDK versie 2.5.12 geüpdatet.
2.6.5
- Verbetering: compatibiliteit met WordPress 6.3.1.
- Verbetering: los een gereflecteerde Cross-Site Scripting kwetsbaarheid op in de
icon-colorshortcode parameter.
2.6.4
- Improvement: Updated Freemius SDK version 2.5.10 to address a Reflected Cross-Site Scripting vulnerability via fs_request_get.
2.6.3
- Improvement: Added the shortcode attribute
colorto set the custom color for the text. E.g.[copy content="Custom Text.." color="#2dcd78"]Copy me![/copy] - Improvement: Added the shortcode attribute
icon-colorto set the custom color for the icon. E.g.[copy content="Custom Text.." style="icon" icon-color="#9437f6"][/copy] - Improvement: Added the shortcode attribute
styleto show the icon. E.g.[copy content="Custom Text.." style="icon"][/copy]
2.6.2
- Verbetering: compatibiliteit met WordPress 6.1.1.
- Verbetering: Freemius SDK-bibliotheek met versie 2.5.3 geüpdatet.
- Verbetering: ondersteuning toegevoegd voor het kopiëren van emoji’s van de inhoud naar het klembord.
2.6.1
- Verbetering: vermeden de knop kopiëren naar klembord voor google docs en email format.
- Verbetering: vermijd de “Kopieer” tekst van het klembord.
2.6.0
- Nieuw: de instelling kopieer format toegevoegd om de inhoud te kopiëren voor google docs of email.
- Verbetering: filter
copy_the_code_shortcode_attstoegevoegd voor shortcode om de gebruiker om te leiden naar een andere pagina na het kopiëren van de inhoud naar het klembord. - Verbetering: ondersteuning toegevoegd voor trim lines met filter
copy_the_code_localize_vars. - Verbetering: vertaalondersteuning toegevoegd voor pt_BR taal.
2.5.0
-
Nieuw: een link toegevoegd om gemakkelijk te upgraden naar de premium versie die onlangs niet gemakkelijk zichtbaar was.
-
Verbetering: verbeter de standaard knopstijl.
- Verbetering: verbeter het welkomstbericht door de naam van de plugin toe te voegen. bedankt @Andre
2.4.2
- Oplossing: het bericht “Je bent slechts één stap verwijderd…” verdwijnt niet na het klikken op de knop. bedankt @MingHong
2.4.1
- Verbetering: de submenu’s pagina links toegevoegd in het berichttype scherm.
- Verbetering: de submenu’s dashboard, contact, upgrade en supportforum verwijderd.
2.4.0
- Nieuw: integratie van de Freemius bibliotheek voor automatische updates, upgrades en snelle ondersteuning.
- Verbetering: nieuwe dashboard beheer pagina toegevoegd voor Copy Anything to Clipboard.
- Verbetering: de shortcode beheer pagina, die niet langer wordt gebruikt, is vervallen.
2.3.5
- Verbetering: UI verbeteringen in de shortcode informatie beheer pagina.
- Verbetering: toegevoegd is de title tag ondersteuning voor de shortcode. Dus, wanneer de gebruiker met de muis op de tekst van de shortcode gaat staan, zal de titel te zien zijn.
- Verbetering: vermijd de verwijder spatiëring ondersteuning door valse waarden in te stellen op de parameter remove_spaces. Gebruik filter van code snippet https://gist.github.com/7c086cdf0837f5864596945086c603c8
2.3.4
- Verbetering: het welkomstbericht alleen voor de eerste keer activeren.
2.3.3
- Verbetering: een welkomstbericht toegevoegd aan de gebruiker voor een soepele plugin onboarding.
2.3.2
- Verbetering: verbeter de code met PHPCS oplossinges.
2.3.1
- Verbetering: houd de tabspaties tijdens het kopiëren naar klembord. bedankt @marius84
- Verbetering: gebruikers kunnen nu niet-persoonlijke gebruiksgegevens delen om ons te helpen betere producten te testen en te ontwikkelen.
2.3.0
- Nieuw: ondersteuning toegevoegd om gebruiker door te sturen na kopiëren naar klembord. bedankt @zecke lees meer https://wp.me/P4Ams0-aAq
2.2.2
- Verbetering: meerdere spaties krijgen in de Gutenberg editor.
- Oplossing: de nieuwe link toevoegen was verkeerd die naar een ongeldige pagina navigeerde.
2.2.1
- Verbetering: verplaats het hoofd menu’s als submenu in het instellingenmenu.
2.2.0
- New – Added shortcode [copy] to copy the content. E.g. [copy]12345[/copy]. Read more at https://clipboard.agency/doc/
2.1.1
- Verbetering – compatibiliteit met WordPress 5.7
2.1.0
- Nieuw: filter
copy_the_code_localize_varstoegevoegd om de inhoud als HTML in plaats van tekst te kopiëren.
2.0.0
- Tweak: het maken van een nieuwe postkopie naar de post op het klembord hangt af van de oude gebruikersinstellingen.
- Verouderd: de filter
copy_the_code_enabledis verwijderd, wat niet meer nuttig is. - Verouderd: de optie
Kopieer de inhoudverwijderd, wat niet meer nuttig is. Zal de ondersteuning door filter toevoegen indien nodig. - Nieuw: ondersteuning voor aangepast berichttype toegevoegd om meerdere kopieën toe te voegen aan klembordknoppen met verschillende selectors en stijlen.
- Nieuw: verbeter de gebruikersinterface met live preview.
- Nieuw: de nieuwe knopstijl
SVG-pictogramtoegevoegd om het SVG-pictogram weer te geven in plaats van de knop. - Nieuw: ondersteuning voor binnen- en buitenposities toegevoegd voor het nieuwe SVG-pictogram in stijl.
- Nieuw: de nieuwe stijl
Omslagtoegevoegd om het kleine element te kopiëren waarin we de kopieerknop niet konden toevoegen. Zoals Emoji en symbolen.
1.8.0
- Nieuw: stel de standaardoptie
Inhoud kopiëren alsin mettekst. - Verbeteringen: de
<br>tags zijn geconverteerd naar de nieuwe regel als de optie “Inhoud kopiëren als” is geselecteerd alsTekst. - Verbeteringen: de
<div>tags zijn geconverteerd naar de nieuwe regel als de optie “Inhoud kopiëren als” is geselecteerd alsTekst. - Verbeteringen: De
<p>tags zijn geconverteerd naar de nieuwe regel als de optie “Inhoud kopiëren als” is geselecteerd alsTekst. - Verbeteringen: de
<li>tags zijn geconverteerd naar de nieuwe regel als de optie “Inhoud kopiëren als” is geselecteerd alsTekst. - Verbeteringen: verwijder de spaties en trim de inhoud als de optie “Inhoud kopiëren als” is geselecteerd als
Tekst. - Oplossing: kopieer de inhoud omdat tekst anders werkt in de browsers Chrome, Firefox en Internet Explorer.
1.7.5
- Oplossing: de tag
<br>is geconverteerd naar de volgende regel. Selecteer deTekstuit de optieInhoud kopiëren als. Dat meldt Konrad. - Oplossing: enkele level selector kopieert de selector naar het klembord. Gemeld door Seb.
1.7.4
- Oplossing: geneste selectors werkten niet omdat de positie van de kopieerknop niet overeenkwam.
1.7.3
- Oplossing: de
<br>tags zijn niet gekopieerd als nieuwe regel. Gerapporteerd door @psanger.
1.7.2
- Verbetering: ongewenste code verwijderd.
1.7.1
- Verbetering: bijgewerkte Freemius SDK-bibliotheek met versie 2.3.2.
- Verbetering: de laatste nieuwe sectie toegevoegd.
- Oplossing: de verzendknop is niet zichtbaar vanaf de instellingenpagina. Gerapporteerd door Nicolas Tizio
1.7.0
- Nieuw: algemeen & stijl tabs.
1.6.1
- Verbetering: WordPress 5.4-compatibiliteit toegevoegd.
1.6.0
- Nieuw: filter
copy_the_code_default_page_settingstoegevoegd om de standaard pagina-instellingen te wijzigen. - Nieuw: filter
copy_the_code_page_settingstoegevoegd om de pagina-instellingen te wijzigen.
1.5.0
- Nieuw: optie ‘Knoptekst’ toegevoegd om de standaard knoptekst in te stellen. Standaard ‘Kopiëren’.
- Nieuw: optie ‘Knop kopieer tekst’ toegevoegd om de knoptekst in te stellen nadat op kopiëren is geklikt. Standaard ‘Gekopieerd!’.
- Nieuw: optie ‘Knoptitel’ toegevoegd om de standaard knoptitel in te stellen die wordt weergegeven bij hoveren met de muisaanwijzer op de knop. Standaard ‘Kopiëren naar klembord’.
- Nieuw: optie ‘Knoppositie’ toegevoegd om de knoppositie in te stellen. Binnen of buiten de selector. Standaard ‘binnen’.
- Verbetering: ondersteuning toegevoegd voor Internet Explorer-apparaten. Gemeld door @rambo3000
1.4.1
- Oplossing: ondersteuning toegevoegd voor IOS-apparaten. Gerapporteerd door @radiocure1
1.4.0
- Nieuw: optie ‘Kopieer inhoud als’ toegevoegd om de inhoud als HTML of tekst te kopiëren.
1.3.1
- Verbetering: de strings en compatibiliteit voor WordPress 5.0 bijgewerkt.
1.3.0
- Nieuw: ondersteuning toegevoegd, contactlinks.
1.2.0
- Nieuw: pagina met instellingen toegevoegd voor het aanpassen van de plugin. Optie
selectortoegevoegd om de JS-selector in te stellen. Standaard zijn<pre>html-tag.
1.1.0
- Oplossing: verwijderde
Kopieerknopopmaak van de gekopieerde inhoud van het klembord.
1.0.0
- Eerste uitgave.
