Clipboard Snippet Copier

Beschreibung

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).

Screenshots

  • Add new snippet screen in the admin area.
  • Example copy button on the frontend.

Installation

  1. Upload the plugin files to the /wp-content/plugins/clipboard-snippet-copier directory, or install it directly from the WordPress.org repository.
  2. Activate the plugin through the ‚Plugins‘ screen in WordPress.
  3. Add snippets in Snippets Add New.
  4. Place a copy button anywhere with the shortcode: [clipsnco_code_copy_btn id=“123″ label=“Copy Code“]
    Where 123 is the ID of your snippet.

FAQ

Can I use multiple buttons on the same page?

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).

Rezensionen

Für dieses Plugin gibt es keine Rezensionen.

Mitwirkende und Entwickler

„Clipboard Snippet Copier“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin mitgewirkt:

Mitwirkende

Änderungsprotokoll

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.