=== Copy the Code ===
Contributors: Mahesh901122
Donate link: https://www.paypal.me/mwaghmare7/
Tags: Copy to Clipboard, Copy the Code, Copy, Clipboard, Code, Copy Code
Tested up to: 4.9.6
Stable tag: 1.2.0
Requires at least: 4.4
Copy the code into 📋 (clipboard). Default support added for <pre> tag. Documentations and more visit on GitHub.
== Description ==
Plugin add the `Copy` button within the `
` tag and it copy the content of `` tag into the clipboard. = 1. How it Works? = Simply, It search the `` tag within the page and add the `Copy` button within it. = 2. It add `Copy` button for each `<pre>` tag? = Yes, Once you activate the plugin it add search the `` tag and add the `Copy` button in it. = 3. Can I use another selector instead of `<pre>` tag? = Yes, You can change the selector though filter `copy_the_code_localize_vars`. Eg. If you want to enable the `Copy` button for only single page, post etc. Then You can change the selector `body.single pre` though filter.add_filter( 'copy_the_code_localize_vars', 'my_slug_copy_the_code_localize_vars' ); function my_slug_copy_the_code_localize_vars( $defaults ) { // `single class is added to the `` tag for the single page, post etc. $defaults['selector'] = 'body.single pre'; return $defaults; }= 4. Plugin compatible for all themes? = Yes, We have added `!important` for the Copy button to keep the button style same for each theme. We have tested below themes. == Supported Themes - Bhari - Astra - AwesomePress - Storefront - OceanWP - Twenty Twelve - Twenty Sixteen - Twenty Seventeen Extend the plugin on [Github](https://github.com/maheshwaghmare/copy-the-code/) == Installation == 1. Install theCopy the Codeplugin either via the WordPress plugin directory, or by uploading the files to your server atwp-content/plugins. == Changelog == = 1.2.0 = * New: Added settings page for customizing the plugin. Added option `selector` to set the JS selector. Default its `` html tag. = 1.1.0 = * Fix: Removed `Copy` button markup from the copied content from the clipboard. = 1.0.0 = * Initial release.