WordPress.org

Plugin Directory

Copy Anything to Clipboard for WordPress – Copy Button, Copy Text & Copy Code

Copy Anything to Clipboard for WordPress – Copy Button, Copy Text & Copy Code

Beschrijving

Copy Anything to Clipboard is a powerful WordPress copy to clipboard plugin that lets visitors copy text, links, coupon codes, code snippets, email addresses, commands, prompts, or any content with a single click.

Add smart copy buttons anywhere on your WordPress website and allow users to instantly copy content without manually selecting text. Perfect for blogs, documentation sites, coupon websites, SaaS tools, AI prompt libraries, developer tutorials, and marketing pages.

Whether you want to add a copy button to code blocks, allow users to copy coupon codes, share ChatGPT prompts, copy email addresses, or let visitors quickly grab links, commands, or contact details, this plugin makes copying content simple and user-friendly.

This flexible copy-to-clipboard plugin offers multiple integration methods including automatic CSS selector targeting, shortcodes, Gutenberg blocks, and Elementor widgets. Easily add copy buttons to code blocks, blockquotes, coupon codes, deals, contact information, and more.

Key Features

  • NEW: Global Injector – Automatically inject copy buttons anywhere using CSS selectors with advanced display conditions
  • One-click copy to clipboard functionality for any content
  • Automatic copy buttons for CSS selectors (pre, blockquote, code, etc.)
  • Shortcode support[copy] and [copy_inline] with flexible attributes
  • Elementor widgets for 25+ content types
  • Gutenberg blocks for modern block-based WordPress sites
  • Smart display conditions – load assets only on selected pages
  • Mobile-friendly and cross-browser compatible
  • Lightweight and SEO-friendly
  • Customizable copy button styles (Button, Icon, Cover) and positions
  • Copy as HTML or plain text
  • Works with all WordPress themes and plugins

Perfect for bloggers, developers, e-commerce stores, educational platforms, documentation websites, and marketing pages that want to make copying content fast and effortless. 📋

Hoe te gebruiken

You can add copy buttons anywhere on your WordPress site using one of the following methods:

  1. NEW: Global Injector
    Automatically inject copy buttons into any element using CSS selectors with advanced display conditions.

  2. Automatic CSS Selector
    Automatically add copy buttons to elements like pre, code, blockquote, or any custom selector.

  3. Shortcodes
    Manually add copy buttons using [copy] or [copy_inline] shortcodes anywhere in your content.

  4. Elementor Widgets
    Add copy buttons visually using dedicated Elementor widgets.

  5. Gutenberg Blocks
    Insert copy buttons directly inside the WordPress block editor using Gutenberg blocks.

METHOD 1 – 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

  1. Go to Copy to Clipboard Global Injector in your WordPress dashboard.
  2. Click Add New Injector.
  3. Enter the CSS selector you want to target (for example: pre, code, or blockquote).
  4. Select a style preset – Button, Icon, or Cover.
  5. (Optional) Configure Display Conditions to control where the copy button appears.
  6. 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.

Examples

Example 1 – Code Snippets

If your posts contain code snippets inside the <pre> tag, simply set the selector to:

pre

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

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, `code`, `blockquote`, `.coupon-code`, `.email-address`, or `.copy-this`<h3>How to Use with CSS Selector</h3>

1. Go to Copy to Clipboard in your WordPress dashboard.
2. Click the Add New button.
3. Enter the CSS selector you want to target (for example: pre or blockquote).
4. Click Create to save the selector.
5. Visit your page and you will see the copy button automatically added to the targeted elements.

For more detailed guides:

METHODE 3 – Handmatig met “Shortcodes”

Use this method when you want to add a copy button only to specific content instead of applying it automatically across the entire site.

The plugin provides two shortcodes:

  • [copy] – Wrap content inside the shortcode
  • [copy_inline] – Copy inline text using attributes

Example – Wrapping Content

`

The Zoom meeting is scheduled on [copy]15 November 2022[/copy]. Please note it down.

`

This will add a copy button that allows users to copy “15 November 2022” with one click.

Example – Inline Content

You can use [copy_inline] to copy inline values such as emails, phone numbers, or links.

`

Contact us:

Use coupon code [copy_inline text=”COUPONCODE”] to get 10% discount.

`<h3>Example – Deal Link</h3>
`

Get the deal: [copy_inline text=”https://clipboard.agency/deal/“]

`<h3>Example – Username and Password</h3>
`

Username: [copy_inline text=”username”]
Password: [copy_inline text=”password” display=”********”]

`

This allows users to copy sensitive values while displaying masked text.
`

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:

  • Emails
  • ChatGPT / AI prompts
  • Coupon codes
  • Deals and affiliate links
  • Inspirational quotes
  • Contact information
  • Addresses
  • 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:

👉 View Elementor Widget Demos

Hoe gebruik je dit met Elementor widgets

  1. Install and activate the Elementor plugin.
  2. Open a page and click Edit with Elementor.
  3. Search for the widget (for example: Copy).
  4. Drag and drop the widget onto the page.
  5. Enter the content you want users to copy.
  6. Publish the page and test the copy button.

For full examples and widget demos:

👉 Bekijk alle live demo’s

Belangrijkste voordelen

  • Global Injector (NEW) – Automatically inject copy buttons anywhere using CSS selectors with display conditions. 🎯
  • Display Conditions – Control exactly where copy buttons appear for better performance. ⚡
  • Multiple Styles – Choose from Button, Icon, or Cover styles. 🎨
  • Copy with One Click – No need for highlighting or manual copying. 🎉
  • Multi-Purpose Usage – Copy text, links, coupon codes, commands, prompts, and more. 🌐
  • Seamless Integration – Works with most WordPress themes and plugins. 💼
  • Mobile Friendly – Fully compatible with smartphones and tablets. 📱
  • Cross-Browser Compatible – Works across all modern browsers. 🌐
  • Lightweight & Fast – Designed to avoid slowing down your site. 🚀
  • Developer Friendly – Easy to integrate with custom code and layouts. 👨‍💻
  • SEO Safe – Does not impact search engine performance. 📈
  • Customization (PRO) – Customize styles, behavior, and advanced features. 🎨

Upgrade to PRO and unlock advanced features, customization options, and analytics.

👉 https://clipboard.agency/pricing/

Popular Copy to Clipboard Plugin

Over 10,000+ active websites are using Copy Anything to Clipboard to easily add copy buttons across their content.

The plugin is fully compatible with all WordPress themes and plugins.

Feature Requests

Have an idea or suggestion?

We welcome feedback and feature requests.

👉 https://clipboard.agency/contact/

Google Chrome extensie 🚀

We also provide a Google Chrome Extension that allows users to quickly copy content from any website.

You can install it directly from the 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 📚

Learn more about the plugin and explore additional resources:

  • 🌐 Official website: https://clipboard.agency/
  • 📖 Documentation & guides: https://clipboard.agency/doc/
  • 🎬 Live demos: https://clipboard.agency/#demos
  • 💬 Contact support: https://clipboard.agency/contact/
  • 🔌 View all our WordPress plugins: https://wordpress.org/plugins/search/clipboardagency/

If you find the plugin helpful, consider supporting development with a small donation:

💖 https://www.paypal.me/mwaghmare7/

Blocks

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.

Social Share

Allow visitors to quickly share content across social media platforms.

Blokken

Deze plugin heeft 4 blokken.

  • Term Title Display the title of the term.
  • Social Share Allow user to share content on social media.
  • Copy Button Allow user to copy code with a button.
  • Copy Icon Allow user to copy code with an icon.

Installatie

  1. Install the Copy Anything to Clipboard plugin from the WordPress plugin directory, or upload it to:

    `

wp-content/plugins

`
  1. Activate the plugin through the Plugins menu in WordPress.

  2. Go to WordPress Admin Copy to Clipboard.

  3. 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 like pre, code, or blockquote.

  • Shortcodes
    Manually add copy buttons using [copy] or [copy_inline].

  • 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 (introduced in v5.0.0) allows you to automatically add copy buttons anywhere on your website using CSS selectors.

Features include:

  • Target any element using CSS selectors
  • Choose style presets (Button, Icon, Cover)
  • Configure display conditions
  • Live preview while configuring

You can access it here:

WordPress Dashboard Copy to Clipboard Global Injector

How do I add copy buttons to code snippets?

Use the Global Injector or CSS selector method.

Example selector:

`

pre

`

or

`

code

`

Steps:

  1. Go to Copy to Clipboard
  2. Click Add New or open Global Injector
  3. Enter selector pre or code
  4. Configure button style
  5. Save settings

Copy buttons will automatically appear on all code blocks.

Can I add copy buttons to specific content only?

Yes.

Use the following shortcodes:

Block content

`

[copy]Your text here[/copy]

`

Inline content

`

[copy_inline text=”Text to copy”]

`

This allows you to add copy buttons only where needed.

Does this plugin work with Elementor?

Yes.

The plugin provides 25+ Elementor widgets, including:

  • Copy Button
  • Copy Icon
  • Code Snippet
  • Coupon Code
  • Deal Link
  • Email Address
  • Phone Number
  • Blockquote
  • ChatGPT Prompt
  • and many more.

Simply search for “Copy” in the Elementor widget panel.

Does this plugin work with Gutenberg?

Yes.

We provide Gutenberg blocks such as:

  • Copy Button
  • Copy Icon
  • Term Title
  • Social Share

All blocks work seamlessly with the WordPress Block Editor.

Can I customize the copy button appearance?

Yes.

You can customize:

  • Button style
  • Icon style
  • Colors
  • Position (inside or outside content)
  • Button text

The Global Injector includes a live preview so you can instantly see style changes.

The PRO version unlocks additional customization options.

How can I control where copy buttons appear?

Use Display Conditions inside the Global Injector.

You can target:

  • Specific pages or posts
  • Post types
  • Categories
  • Tags
  • Custom taxonomies
  • User roles

This helps optimize both design and performance.

Is the plugin mobile friendly?

Yes.

Copy functionality works perfectly on mobile phones, tablets, and desktops.

Does it work in all browsers?

Yes.

The plugin supports all modern browsers including:

  • Chrome
  • Firefox
  • Safari
  • Edge

Will this plugin slow down my website?

No.

The plugin is lightweight and optimized for performance and will not slow down your WordPress site.

Can the plugin copy HTML content?

Yes.

You can copy content as:

  • Plain text
  • HTML format

This is useful for copying code snippets, formatted content, or rich text.

Beoordelingen

1 december 2024
The Copy Anything to Clipboard plugin for WordPress is vulnerable to Stored Cross-Site Scripting in versions up to, and including, 4.0.3 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. Hopefully this can be fixed soon!
4 april 2024
The plugin does what it says. It allows you to chose text to be copied in a variety of scenarios and for many use cases. However,.. I do not condone the design choises being made. Loading scripts, regardless of use, on all pages is a no-go. Certainly given the page-speed impact they have High page-speed impact compared to a manual js implementation of a “copy to clipboard” functionality Loading back-end JS files even with the plugin not being used anywhere is a no-go (eg. block-editor.min.js, editor.min.js, etc.) I had to remove the plugin from all client websites. That being said, the support team seems open to feedback for improvement & recognized these issues. So I might give it some time and come back in the future.
21 februari 2024 1 reactie
The plugin is great. Support is great. I recommend
2 februari 2024
Plugin works like a charm. We had a problem using BBCode and support was very friendly and tried to help us. Very kind person, will definately ask again when running into new problems.
2 november 2023
its good plugin, ez to use and userfriendly. On even a brighter side, their customer service is efficient and swift. ! i recommand
Lees alle 35 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.

Vertaal “Copy Anything to Clipboard for WordPress – Copy Button, Copy Text & Copy Code” in je eigen taal.

Interesse in ontwikkeling?

Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.

Changelog

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-analytics and data-ctc-source="gutenberg-block"; frontend sends analytics to POST /ctc/v1/analytics/events after each copy (non-blocking). Block scripts and styles still load only when the relevant block is present on the page.
  • 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 an analytics attribute (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 prev whenever previous-period data exists (including 0), reserving -- prev only 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_VER constant, 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 include rel="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_options capability, 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, returning 429 on abusive bursts and 400 for invalid event data to protect the ctc_analytics table.
  • Improvement: Analytics timezone normalization – Analytics events and query windows now consistently use UTC for created_at and 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_analytics table 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 their alt text 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_html to 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 analyticsPOST /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-as attribute. 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.after hook for extensibility.
  • Improvement: Copy As extensibility – Free plugin now uses ctc.globalInjector.copyAs.after hook; 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_data filters; ctc.globalInjector.fieldsToCompare for 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-clipboard redirect 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_css filter 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=ID query parameter to open the editor with a specific rule selected (e.g. from the admin bar or bookmarks). Added get_selected_rule_id() helper.
  • New: Shortcode redirect attribute – The [copy] shortcode now supports a redirect attribute 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 existing link attribute remains supported for backward compatibility and has the same effect as redirect.
  • Fix: Shortcode display text with inner content – When both text and inner content are present (e.g. [copy text="Hello World"]Copy this[/copy]), the visible label now uses the inner content (“Copy this”) and text is used only for the copy payload. Previously the label showed the text value.
  • 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 link attribute redirect – The “Copy & Redirect” / “Combining Multiple Attributes” flow now works: when link="https://example.com" is set, the shortcode outputs data-ctc-link and 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 width and height attributes (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 table elements.
  • Fix: Square brackets in shortcode content – Legacy shortcodes using content="... &#91;...&#93; ..." now copy the correct [ and ] characters. The content attribute 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] and [copy_inline] 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_time notices 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 (&#91; &#93;) not being decoded properly in content attribute. Thanks @akashathu
  • Fix: CSS var() Double Dashes – Fixed WordPress converting -- to en-dash inside CSS var() functions like var(--wp--preset--color--bg). Thanks @mikecargal
  • Fix: Legacy Shortcode content Attribute – Restored proper handling where content attribute contains the text to copy and text attribute 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 new shortcode [copy_inline] which allow you to copy content from the inline element.
  • 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-color shortcode 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 color to set the custom color for the text. E.g. [copy content="Custom Text.." color="#2dcd78"]Copy me![/copy]
  • Improvement: Added the shortcode attribute icon-color to set the custom color for the icon. E.g. [copy content="Custom Text.." style="icon" icon-color="#9437f6"][/copy]
  • Improvement: Added the shortcode attribute style to 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_atts toegevoegd 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_vars toegevoegd 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_enabled is verwijderd, wat niet meer nuttig is.
  • Verouderd: de optie Kopieer de inhoud verwijderd, 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-pictogram toegevoegd 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 Omslag toegevoegd 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 als in met tekst.
  • Verbeteringen: de <br> tags zijn geconverteerd naar de nieuwe regel als de optie “Inhoud kopiëren als” is geselecteerd als Tekst.
  • Verbeteringen: de <div> tags zijn geconverteerd naar de nieuwe regel als de optie “Inhoud kopiëren als” is geselecteerd als Tekst.
  • Verbeteringen: De <p> tags zijn geconverteerd naar de nieuwe regel als de optie “Inhoud kopiëren als” is geselecteerd als Tekst.
  • Verbeteringen: de <li> tags zijn geconverteerd naar de nieuwe regel als de optie “Inhoud kopiëren als” is geselecteerd als Tekst.
  • 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 de Tekst uit de optie Inhoud 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_settings toegevoegd om de standaard pagina-instellingen te wijzigen.
  • Nieuw: filter copy_the_code_page_settings toegevoegd 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 selector toegevoegd om de JS-selector in te stellen. Standaard zijn <pre> html-tag.

1.1.0

  • Oplossing: verwijderde Kopieer knopopmaak van de gekopieerde inhoud van het klembord.

1.0.0

  • Eerste uitgave.