{"id":234521,"date":"2025-05-30T00:12:26","date_gmt":"2025-05-30T00:12:26","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/code-block-copy-button\/"},"modified":"2025-06-03T00:32:07","modified_gmt":"2025-06-03T00:32:07","slug":"code-block-copy-button","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/code-block-copy-button\/","author":8092953,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.5.4","stable_tag":"1.5.4","tested":"6.8.5","requires":"5.0","requires_php":"","requires_plugins":null,"header_name":"Code Block Copy Button","header_author":"Tony Herman","header_description":"Adds a customizable copy button to code blocks for easy copying. Includes admin settings to change button text and color.","assets_banners_color":"014aa7","last_updated":"2025-06-03 00:32:07","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/tonyherman.com\/","header_plugin_uri":"https:\/\/www.tonyherman.com\/code-copy-button-wordpress-plugin\/","header_author_uri":"https:\/\/www.tonyherman.com\/","rating":0,"author_block_rating":0,"active_installs":60,"downloads":611,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.5.2":{"tag":"1.5.2","author":"tcstix","date":"2025-05-30 00:12:12"},"1.5.3":{"tag":"1.5.3","author":"tcstix","date":"2025-05-30 00:37:37"},"1.5.4":{"tag":"1.5.4","author":"tcstix","date":"2025-06-03 00:32:07"}},"upgrade_notice":{"1.5.3":"<p>Minor fix: Updated admin ad link to point to the correct domain.= 1.4 =<br \/>\nImproved compatibility with Gutenberg blocks and fixed Plugin Check warnings. Recommended update for all users.= 1.3 =<br \/>\nAdds admin panel instructions and promotional content. Prepares the plugin for public release on WordPress.org.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3303240,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3303240,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3303240,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3303240,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.5.2","1.5.3","1.5.4"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3303240,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3303240,"resolution":"2","location":"assets","locale":""}},"screenshots":{"1":"Example of the Copy button in action.","2":"Admin settings page with customization options.1. Example of the Copy button in action.","3":"Admin settings page with customization options.1. Example of the Copy button in action.","4":"Admin settings page with customization options."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[17897,24363,188921,20421,4932],"plugin_category":[],"plugin_contributors":[243089],"plugin_business_model":[],"class_list":["post-234521","plugin","type-plugin","status-publish","hentry","plugin_tags-clipboard","plugin_tags-code-block","plugin_tags-copy-button","plugin_tags-copy-to-clipboard","plugin_tags-developer-tools","plugin_contributors-tcstix","plugin_committers-tcstix"],"banners":{"banner":"https:\/\/ps.w.org\/code-block-copy-button\/assets\/banner-772x250.png?rev=3303240","banner_2x":"https:\/\/ps.w.org\/code-block-copy-button\/assets\/banner-1544x500.png?rev=3303240","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/code-block-copy-button\/assets\/icon-128x128.png?rev=3303240","icon_2x":"https:\/\/ps.w.org\/code-block-copy-button\/assets\/icon-256x256.png?rev=3303240","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/code-block-copy-button\/assets\/screenshot-1.png?rev=3303240","caption":"Example of the Copy button in action."},{"src":"https:\/\/ps.w.org\/code-block-copy-button\/assets\/screenshot-2.png?rev=3303240","caption":"Admin settings page with customization options.1. Example of the Copy button in action."}],"raw_content":"<!--section=description-->\n<p><a href=\"https:\/\/www.tonyherman.com\/code-copy-button-wordpress-plugin\/\">Live Demo<\/a><\/p>\n\n<p>Make it easy for your readers and users to copy code snippets directly from your website. The Code Block Copy Button plugin adds a handy copy button to all code blocks, helping developers, tech writers, and educators improve user experience.<\/p>\n\n<p><strong>Features:<\/strong>\n- Automatically adds a Copy button to all <code>&lt;pre&gt;<\/code> code blocks, including Gutenberg Code and Preformatted blocks.\n- Customize the button text (e.g., \"Copy\", \"Copy Code\").\n- Change the button color to match your site's theme.\n- Clean, modern SVG icon included in the button.\n- Simple settings panel under <strong>Settings &gt; Code Block Copy<\/strong>.\n- Works with both Classic and Gutenberg editors.\n- Includes an optional promotional banner in the admin panel.<a href=\"https:\/\/www.tonyherman.com\/code-copy-button-wordpress-plugin\/\">Live Demo<\/a><\/p>\n\n<p>Make it easy for your readers and users to copy code snippets directly from your website. The Code Block Copy Button plugin adds a handy copy button to all code blocks, helping developers, tech writers, and educators improve user experience.<\/p>\n\n<p><strong>Features:<\/strong>\n- Automatically adds a Copy button to all <code>&lt;pre&gt;<\/code> code blocks, including Gutenberg Code and Preformatted blocks.\n- Customize the button text (e.g., \"Copy\", \"Copy Code\").\n- Change the button color to match your site's theme.\n- Clean, modern SVG icon included in the button.\n- Simple settings panel under <strong>Settings &gt; Code Block Copy<\/strong>.\n- Works with both Classic and Gutenberg editors.\n- Includes an optional promotional banner in the admin panel.<a href=\"https:\/\/www.tonyherman.com\/code-copy-button-wordpress-plugin\/\">Live Demo<\/a><\/p>\n\n<p>Make it easy for your readers and users to copy code snippets directly from your website. The Code Block Copy Button plugin adds a handy copy button to all code blocks, helping developers, tech writers, and educators improve user experience.<\/p>\n\n<p><strong>Features:<\/strong>\n- Automatically adds a Copy button to all<\/p>\n\n<p>&lt;<\/p>\n\n<p>pre&gt; code blocks.\n- Customize the button text (e.g., \"Copy\", \"Copy Code\").\n- Change the button color to match your site's theme.\n- Simple settings panel under <strong>Settings &gt; Code Block Copy<\/strong>.\n- No coding required \u2013 just install, configure, and you're done.\n- Includes an optional affiliate link banner in the admin to help support development.<\/p>\n\n<h3>License<\/h3>\n\n<p>This plugin is licensed under the GPL2 license. See https:\/\/www.gnu.org\/licenses\/gpl-2.0.html for details.<\/p>\n\n<p>Add a customizable copy button to code blocks for fast, one-click copying.<\/p>\n\n<h3>License<\/h3>\n\n<p>This plugin is licensed under the GPL2 license. See https:\/\/www.gnu.org\/licenses\/gpl-2.0.html for details.<\/p>\n\n<p>Add a customizable copy button to code blocks for fast, one-click copying.<\/p>\n\n<h3>License<\/h3>\n\n<p>This plugin is licensed under the GPL2 license. See https:\/\/www.gnu.org\/licenses\/gpl-2.0.html for details.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/code-block-copy-button<\/code> directory, or install it directly through the WordPress plugins screen.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress.<\/li>\n<li>Navigate to <strong>Settings &gt; Code Block Copy<\/strong> to configure the button text and color.1. Upload the plugin files to the <code>\/wp-content\/plugins\/code-block-copy-button<\/code> directory, or install it directly through the WordPress plugins screen.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress.<\/li>\n<li>Navigate to <strong>Settings &gt; Code Block Copy<\/strong> to configure the button text and color.1. Upload the plugin files to the \/wp-content\/plugins\/code-block-copy-button directory, or install it directly through the WordPress plugins screen.<\/li>\n<li>Activate the plugin through the \u2018Plugins\u2019 screen in WordPress.<\/li>\n<li>Navigate to <strong>Settings &gt; Code Block Copy<\/strong> to configure the button text and color.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='how%20do%20i%20use%20this%20plugin%3F'><h3>How do I use this plugin?<\/h3><\/dt>\n<dd><p>Simply install and activate it. The Copy button will appear automatically on all <code>&lt;pre&gt;<\/code> code blocks. Use the settings page to customize the button text and color.<\/p><\/dd>\n<dt id='can%20i%20customize%20the%20position%20of%20the%20button%3F'><h3>Can I customize the position of the button?<\/h3><\/dt>\n<dd><p>At this time, the button is automatically placed above the code block. Future updates may include position customization.<\/p><\/dd>\n<dt id='does%20this%20plugin%20support%20gutenberg%20blocks%3F'><h3>Does this plugin support Gutenberg blocks?<\/h3><\/dt>\n<dd><p>Yes! It works with the Gutenberg <strong>Code<\/strong> block and any manually added<\/p>\n\n<p>&lt;<\/p>\n\n<p>pre&gt; tags.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.5.4<\/h4>\n\n<ul>\n<li>Updated button functions and plugin description.<\/li>\n<\/ul>\n\n<h4>1.5.3<\/h4>\n\n<ul>\n<li>Changed admin settings ad link to point to CopyMyIP.dev<\/li>\n<\/ul>\n\n<h4>1.4<\/h4>\n\n<ul>\n<li>New admin settings, SVG icon added, duplicate button fix, and improved copy functionality.<\/li>\n<\/ul>\n\n<h4>1.3<\/h4>\n\n<ul>\n<li>Finalized admin settings with instructions and promotional banner.<\/li>\n<li>Cleaned up SVG icon for modern display.<\/li>\n<li>Prepared for WordPress repository submission.<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Added admin settings page.<\/li>\n<li>Included options for button text and color customization.<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Added Settings link directly from the Plugins page.<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release. Copy button automatically added to code blocks.= 1.4 =<\/li>\n<li>Improved compatibility with Gutenberg Preformatted blocks.<\/li>\n<li>Fixed JavaScript to handle both <code>&lt;code&gt;<\/code> and <code>&lt;pre&gt;<\/code> content.<\/li>\n<li>Restored SVG icon in the Copy button.<\/li>\n<li>Addressed Plugin Check warnings for asset loading and URL escaping.<\/li>\n<li>Updated readme and bumped version for release.<\/li>\n<\/ul>\n\n<h4>1.3<\/h4>\n\n<ul>\n<li>Finalized admin settings with instructions and promotional banner.<\/li>\n<li>Cleaned up SVG icon for modern display.<\/li>\n<li>Prepared for WordPress repository submission.<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Added admin settings page.<\/li>\n<li>Included options for button text and color customization.<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Added Settings link directly from the Plugins page.<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release. Copy button automatically added to code blocks.= 1.3 =<\/li>\n<li>Finalized admin settings with instructions and promotional banner.<\/li>\n<li>Cleaned up SVG icon for modern display.<\/li>\n<li>Prepared for WordPress repository submission.<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Added admin settings page.<\/li>\n<li>Included options for button text and color customization.<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Added Settings link directly from the Plugins page.<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release. Copy button automatically added to code blocks.<\/li>\n<\/ul>","raw_excerpt":"Add a customizable copy button to code blocks for fast, one-click copying.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/234521","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=234521"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/tcstix"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=234521"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=234521"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=234521"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=234521"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=234521"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=234521"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}