Leírás
Clipboard Snippet Copier allows you to provide demo codes, shortcodes, or any reusable snippets to your users.
Instead of exposing the raw code on the page, snippets are stored securely in the WordPress admin and fetched via AJAX only when copied.
This makes it easier for you to share ready-to-use shortcodes or WPBakery/Elementor demo layouts without rendering them, while your users can simply click Copy and paste into their editor.
Features:
- 📋 Copy any snippet/shortcode directly to clipboard.
- 🔒 Snippets are not displayed on the frontend – fetched via AJAX only.
- ⚡ Lightweight and secure (uses WordPress AJAX + nonces).
- 🖱️ Supports multiple buttons on the same page.
- 🎨 Easy integration with any theme or page builder.
Example Use Case
- Provide WPBakery demo shortcodes for your users.
- Share Gutenberg block templates as code snippets.
- Give customers shortcode presets without exposing messy code.
Usage
- Add a new snippet in Code Snippets Add New.
- Provide title for your reference
- Paste the code in code editor
- Place the button in your content with ID: [clipsnco_code_copy_btn id=”123″ label=”Copy Demo”]
- When users click the button, the snippet will be copied to their clipboard (without rendering).
Telepítés
- Upload the plugin files to the
/wp-content/plugins/clipboard-snippet-copierdirectory, or install it directly from the WordPress.org repository. - Activate the plugin through the ‘Plugins’ screen in WordPress.
- Add snippets in Snippets Add New.
- Place a copy button anywhere with the shortcode: [clipsnco_code_copy_btn id=”123″ label=”Copy Code”]
Where123is the ID of your snippet.
GYIK
-
Yes, you can place as many as you want. Each button will copy its assigned snippet.
-
Will users see the snippet on the page?
-
No. Snippets are stored in the database and fetched via AJAX only when copied.
-
Does it work with page builders like WPBakery or Elementor?
-
Yes. You can add the copy button shortcode anywhere (page content, widget, or builder block).
Vélemények
Nincsenek értékelések erről a bővítményről.
Közreműködők és fejlesztők
“Clipboard Snippet Copier” egy nyílt forráskódú szoftver. A bővítményhez a következő személyek járultak hozzá:
Közreműködők“Clipboard Snippet Copier” fordítása a saját nyelvünkre.
Érdekeltek vagyunk a fejlesztésben?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Változási napló
1.2
- Fixed: Resource version not set in call to wp_enqueue_style()
1.1
- Bug Fixes
1.0
- Initial release of Clipboard Snippet Copier.

