Copy Anything to Clipboard


Copy Anything to Clipboard: the #1 WordPress Copy to Clipboard plugin

Add a copy button anywhere and simply copy it into the clipboard (📋).

You can copy to clipboard: code snippets, special symbols, discount codes, or anything which you want.

By default, the copy button is added to the <pre> tag. You can easily change the pre tag selector with any other selector. You can read more about selector.

Just use the shortcode as:

[copy content="100OFF"]

Above shortcode display text “Copy” and on click it the text “100OFF” copied into the clipboard.

We can change the “Copy” text with any other text as text="Click Me".

E.g. [copy text="Click Me" content="100OFF"]

Here we can see the text “Click Me” and on click on it the text “100OFF” copied to the clipboard.

We see the text “Copied” after clicking on the link which indicate user something is copied to clipboard.

See quick video.


Read more at copy with shortcode.

FREE And Popular Copy to Clipboard Plugin

Over 6k+ users are empowering their websites with “Copy Anything to Clipboard” – 100% compatible for all themes and plugins.

Reasons why people love the Copy Anything to Clipboard

  • Zero configuration
  • Easy to use
  • Copy with shortcode
  • Customization options
  • Quick support

Welcome for featured requests

If you have any suggestion or any featured request then don’t hesitate to contact.

Bug reports

Bug reports for “Copy Anything to Clipboard” are welcomed in our repository on GitHub. Please note that GitHub is not a support forum, and that issues that are not properly qualified as bugs will be closed.

Further reading

For more info check out the following:

Image Copyrights

Icons made by Pixel perfect from

لقطات الشاشة


  1. Install the Copy Anything to Clipboard plugin either via the WordPress plugin directory, or by uploading the files to your server at wp-content/plugins.


18 يونيو، 2022
It's best of its kind, very flexible and easy to use. The only con is that it loads on every single page, not just when needed. As a result, you have to use one more plugin to prevent that if you want to a well optimized site.
22 يونيو، 2021
The usability wasn't really thought through. Difficult to figure out how it works.
12 يونيو، 2021
It is recommended to change the function shortcode_markup() in class-copy-the-code-shortcode.php text & copied-text becomes a localized string to allow users to customize the default translation in the [copy] shortcode 'text' => __('Copy','copy-the-code'), 'copied-text' => __('Copied!','copy-the-code'), In addition, it is also recommended to provide an interface for users to customize the style of [copy] (do not let for users to CSS to process)
إقرأ جميع المراجعات 17

المساهمون والمطوّرون

“Copy Anything to Clipboard” هو برنامج مفتوح المصدر. وقد ساهم هؤلاء الأشخاص بالأسفل في هذه الإضافة.


لقد تم ترجمة ”Copy Anything to Clipboard“ إلى لغتين. شكراً إلى جميع المُترجمين لمُساهماتهم.

ترجمة ”Copy Anything to Clipboard“ إلى لغتك.

مُهتم بالتطوير؟

تصفّح الشفرة، تحقق من مستودع SVN، أو الاشتراك في سجل التطوير بواسطة RSS.

سجل التغييرات


  • Improvement: Getting multiple white spaces in Gutenberg editor.
  • Fix: The add new link was wrong which navigate to invalid page.


  • Improvement: Move the parent menus as submenu in settings menu.


  • New – Added shortcode [copy] to copy the content. E.g. [copy]12345[/copy]. Read more at


  • Improvement – Compatibility to WordPress 5.7.


  • New: Added filter copy_the_code_localize_vars to allow to copy the content as HTMl instead of text.


  • Tweak: Create a new post copy to clipboard post depends on the old user settings.
  • Deprecated: Removed the filter copy_the_code_enabled which is no more useful.
  • Deprecated: Removed the option Copy the content which is no more useful. Will add the support though filter if required.
  • New: Added custom post type support to add multiple copy to clipboard buttons with different selectors and styles.
  • New: Improve the UI with live preview.
  • New: Added the new SVG Icon button style to show the SVG icon instead of button.
  • New: Added inside and outside position support for the new style SVG Icon.
  • New: Added the new Cover style to copy the small element in which we could not add the copy button. Such as Emoji and Symbols.


  • New: Set the Copy Content As default option with text.
  • Improvements: Converted the <br> tags into the new line if the option “Copy Content As” selected as Text.
  • Improvements: Converted the <div> tags into the new line if the option “Copy Content As” selected as Text.
  • Improvements: Converted the <p> tags into the new line if the option “Copy Content As” selected as Text.
  • Improvements: Converted the <li> tags into the new line if the option “Copy Content As” selected as Text.
  • Improvements: Remove the white spaces and trim the content if the option “Copy Content As” selected as Text.
  • Fix: Copy the content as text works different on Chrome, Firefox and Internet Explorer browsers.


  • Fix: The <br> tag converted into the next line. Select the Text from option Copy Content As. Reported by Konrad.
  • Fix: Single level selector copies the selector in the clipboard. Reported by Seb.


  • Fix: Nested selectors was not working due to mismatch the copy button position.


  • Fix: The <br> tags was not copied as new line. Reported by @psanger.


  • Improvement: Removed unwanted code.


  • Improvement: Updated Freemius SDK library with version 2.3.2.
  • Improvement: Added the latest new section.
  • Fix: The submit button is not visible form the settings page. Reported by Nicolas Tizio


  • New: Added General & Style tabs.


  • Improvement: Added WordPress 5.4 compatibility.


  • New: Added filter copy_the_code_default_page_settings to change the default page settings.
  • New: Added filter copy_the_code_page_settings to change the page settings.


  • New: Added option ‘Button Text’ to set the default button text. Default ‘Copy’.
  • New: Added option ‘Button Copy Text’ to set the button text after click on copy. Default ‘Copied!’.
  • New: Added option ‘Button Title’ to set the default button title which appear on hover on button. Default ‘Copy to Clipboard’.
  • New: Added option ‘Button Position’ to set the button position. Inside or outside the selector. Default ‘inside’.
  • Improvement: Added support for Internet Explorer devices. Reported by @rambo3000


  • Fix: Added support for IOS devices. Reported by @radiocure1


  • New: Added option ‘Copy Content As’ to copy the content as either HTML or Text.


  • Improvement: Updated the strings and compatibility for WordPress 5.0.


  • New: Added support, contact links.


  • New: Added settings page for customizing the plugin. Added option selector to set the JS selector. Default its <pre> html tag.


  • Fix: Removed Copy button markup from the copied content from the clipboard.


  • Initial release.