=== Copy Anything to Clipboard ===
Contributors: Mahesh901122, freemius
Donate link: https://www.paypal.me/mwaghmare7/
Tags: Copy, Paste, Copy to Clipboard, Clipboard, Copy Anything to Clipboard
Tested up to: 6.0.1
Stable tag: 2.6.1
Requires PHP: 5.6
Requires at least: 4.4
== Description ==
**Copy Anything to Clipboard** is the #1 WordPress plugin with **75,000+** downloads 🚀
You can use plugin to copy anything including:
- Copy <b>Blockquote</b>
- Copy <b>Wishes</b>
- Copy <b>Messages</b>
- Copy <b>Shayari</b>
- Copy <b>Offer Codes</b>
- Copy <b>Special Symbols</b>
- Copy <b>Code Snippets</b>
- Copy <b>Hidden Content</b>
- and much more 🥳
You can add a copy button anywhere on your website which simply copy the content into the clipboard (📋)
You can use the plugin with two ways:
== # METHOD 1 – Copy with Shortcode
Use the shortcode `[copy]` shortcode
E.g.
<code>The zoom meeting is scheduled on data [copy]15 November 2022[/copy] please note down it.</code>
Here,
In the above paragraph, On click on date **15 November 2022** it will copy to the clipboard.
Another example,
<code>Hello Students,</code>
<code>Please save the next meeting link [copy content="https://meet.google.com/_meet/mbz-zncr-efk?ijlm=1659873953647&adhoc=1&hs=187"]Click to Copy Link[/copy] for next meeting.</code>
In this example, When someone click on **Click to Copy Link** then the meeting URL will copy to clipboard.
Above are some common use cases.
You can use it as you want.
Read more about <a href="https://maheshwaghmare.com/wordpress/blog/copy-anything-to-clipboard/">all shortcode options</a>
== # METHOD 2 – Copy with CSS Target
This is the most useful way and is mostly used by a lot of users with this plugin
==== Use Case 1: How to add the copy button to Blockquote
- **Step 1** – Go to “Copy to Clipboard”
- **Step 2** – Click on the “Add New” button
See the below screenshot for reference:
<img src="https://maheshwaghmare.com/wp-content/uploads/2022/08/add-new-copy-to-clipboard.png" />
You’ll see the screen something as below:
<img src="https://maheshwaghmare.com/wp-content/uploads/2022/08/add-new-default-screen.png" />
Now, Just do:
- **Step 3** – Add the selector as a blockquote
- **Step 4** – Click on “Create”
<img src="https://maheshwaghmare.com/wp-content/uploads/2022/08/successfully-created-new-copy-to-clipboard.png" />
**DONE!**
That’s it. You don’t need to do anything. If you visit the blockquote you’ll see something as below:
<img src="https://maheshwaghmare.com/wp-content/uploads/2022/08/added-copy-button-to-blockquote-with-copy-the-code.png" />
Read more about <a href="https://maheshwaghmare.com/wordpress/blog/copy-anything-to-clipboard/">Copy Anything to Clipboard</a>
== 🤩 FREE and Popular Copy to Clipboard Plugin Ever
Over **10,000 thousands plus** active people 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 <a href="https://maheshwaghmare.com/say-hello/">contact me</a>.
=== Bug reports
Bug reports for “Copy Anything to Clipboard” are welcomed in WordPress <a href="https://wordpress.org/support/plugin/copy-the-code/">support forum</a>.
=== Further reading
For more info check out the following:
* The [maheshwaghmare.com](https://maheshwaghmare.com/) official website 📌
* The [Contact me](https://maheshwaghmare.com/say-hello/) 👋
* The [Getting started guide](https://maheshwaghmare.com/wordpress/blog/copy-anything-to-clipboard/) 📃
* All other my [WordPress plugins](https://wordpress.org/plugins/search/mahesh901122/) 💎
* Contribute with plugin [contact me](https://maheshwaghmare.com/say-hello/) ✨
* Make a [small donation](https://www.paypal.me/mwaghmare7/) for continue FREE support 💪
== Image Copyrights
Icons made by <a href="https://www.flaticon.com/authors/pixel-perfect" title="Pixel perfect">Pixel perfect</a> from <a href="https://www.flaticon.com/" title="Flaticon"> www.flaticon.com</a>
== Installation ==
1. Install the <code>Copy Anything to Clipboard</code> plugin either via the WordPress plugin directory, or by uploading the files to your server at <code>wp-content/plugins</code>.
== Changelog ==
= 2.6.1 =
* Improvement: Avoided the button copy to clipboard for Google Docs and Email format.
* Improvement: Avoided the "Copy" text from the clipboard.
= 2.6.0 =
* New: Added the Copy Format setting to copy the content for Google Docs or Email.
* Improvement: Added filter `copy_the_code_shortcode_atts` for shortcode to redirect the user to another page after copying the content to the clipboard.
* Improvement: Added the support to Trim Lines with filter `copy_the_code_localize_vars`.
* Improvement: Added translation support for pt_BR language.
= 2.5.0 =
* New: Added a link to easily upgrade to the premium version which was recently not easily visible.
* Improvement: Improve the default button style.
* Improvement: Improve the welcome message by adding the plugin name. Thanks @Andre
= 2.4.2 =
* Fix: The message "You are just one step away.." is not disappearing after clicking on button. Thanks @MingHong
= 2.4.1 =
* Improvement: Added the sub-menus page links into the post type screen.
* Improvement: Removed the sub-menus Dashboard, Contact Us, Upgrade, and Support Forum.
= 2.4.0 =
* New: Integrated the Freemius library for automatic updates, upgrade and for quick support.
* Improvement: Add new dashboard admin page for Copy Anything to Clipboard.
* Improvement: Deprecated the Shortcode admin page which is no longer used.
= 2.3.5 =
* Improvement: UI improvements in the shortcode information admin page.
* Improvement: Added the title tag support for the shortcode. So, Whenever the user hovers on shortcode text then it'll see the title.
* Improvement: Avoid the remove spaces support by setting false values to the parameter remove_spaces. Use filter from code snippet https://gist.github.com/7c086cdf0837f5864596945086c603c8
= 2.3.4 =
* Improvement: Keep the welcome message only for first time user activate.
= 2.3.3 =
* Improvement: Added a welcome message to the user for smooth plugin onboarding.
= 2.3.2 =
* Improvement: Improve the code with PHPCS fixes.
= 2.3.1 =
* Improvement: Keep the tab spaces while copy to clipboard. Thanks @marius84
* Improvement: Users can now share non-personal usage data to help us test and develop better products.
= 2.3.0 =
* New: Added support to redirect user after copy to clipboard. Thanks @zecke Read more https://wp.me/P4Ams0-aAq
= 2.2.2 =
* Improvement: Getting multiple white spaces in Gutenberg editor.
* Fix: The add new link was wrong which navigate to invalid page.
= 2.2.1 =
* Improvement: Move the parent menus as submenu in settings menu.
= 2.2.0 =
* New - Added shortcode [copy] to copy the content. E.g. [copy]12345[/copy]. Read more at https://maheshwaghmare.com/wordpress/blog/copy-anything-to-clipboard/#shortcode
= 2.1.1 =
* Improvement - Compatibility to WordPress 5.7.
= 2.1.0 =
* New: Added filter `copy_the_code_localize_vars` to allow to copy the content as HTMl instead of text.
= 2.0.0 =
* 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.
= 1.8.0 =
* 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.
= 1.7.5 =
* 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.
= 1.7.4 =
* Fix: Nested selectors was not working due to mismatch the copy button position.
= 1.7.3 =
* Fix: The `<br>` tags was not copied as new line. Reported by @psanger.
= 1.7.2 =
* Improvement: Removed unwanted code.
= 1.7.1 =
* 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
= 1.7.0 =
* New: Added General & Style tabs.
= 1.6.1 =
* Improvement: Added WordPress 5.4 compatibility.
= 1.6.0 =
* 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.
= 1.5.0 =
* 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
= 1.4.1 =
* Fix: Added support for IOS devices. Reported by @radiocure1
= 1.4.0 =
* New: Added option 'Copy Content As' to copy the content as either HTML or Text.
= 1.3.1 =
* Improvement: Updated the strings and compatibility for WordPress 5.0.
= 1.3.0 =
* New: Added support, contact links.
= 1.2.0 =
* New: Added settings page for customizing the plugin. Added option `selector` to set the JS selector. Default its `<pre>` html tag.
= 1.1.0 =
* Fix: Removed `Copy` button markup from the copied content from the clipboard.
= 1.0.0 =
* Initial release.