Clipboard Snippet Copier
One-click copy-to-clipboard for shortcodes & code snippets. Hide the raw code or show it inline. Works with a shortcode or Gutenberg block.
Utiliser avec prudence
Clipboard Snippet Copier works, but test it on a staging site before relying on it in 2026. Was last updated 7 months ago, and scores 43/100 on our health check.
- Petite base d'utilisateurs (<10 installations actives)
- Très peu de critiques jusqu'à présent
Comment s'accumule-t-il ?
Côte à côte sur les installations, les mises à jour, les évaluations et le supportTéléchargements quotidiens
Les pics de téléchargement suivent généralement une nouvelle version - chaque site qui met à jour automatiquement compte comme un téléchargement.
Classements
Where Clipboard Snippet Copier stands todayWordPress.org Classements de recherche
Position en direct dans la recherche de plugins, Top 100| Mot-clé | Position |
|---|---|
| presse-papiers | #62 |
| code snippet | >100 |
| copie | >100 |
| copy shortcode | >100 |
| Gutenberg Bloc | >100 |
About Clipboard Snippet Copier
À partir du Lisezmoi officiel · v1.4Description
Clipboard Snippet Copier lets you share ready-to-use shortcodes, demo layouts, or any reusable code snippets with your visitors. Click a button and the snippet is copied straight to their clipboard. No manual selection, no copy/paste errors.
You decide whether the snippet stays hidden (fetched only when copied) or is displayed inline as a styled code block. Either mode is one click away for the visitor.
Pourquoi l'utiliser ?
- Sell or showcase shortcodes — give buyers a “Copy Demo” button without exposing messy markup.
- Document your code — share PHP / JS / CSS examples on tutorial pages with a proper copy button.
- Reduce support tickets — eliminate “the shortcode didn’t work” issues caused by smart quotes, missing brackets, or whitespace mangling.
- Track engagement — built-in per-snippet copy counter shows what your audience actually uses.
Principales caractéristiques
- 📋 One-click copy to clipboard with success/failure tooltip.
- 🔒 Hidden mode — the snippet is stored in the admin and fetched via AJAX only when copied (never rendered in the HTML).
- 👁️ Inline mode — render the snippet visibly as a
<pre><code>block with a copy button on top. - 🧱 Gutenberg block with sidebar controls (snippet ID, label, inline toggle, language hint).
- 🔢 Shortcode for the Classic Editor, WPBakery, Elementor and any other builder.
- 🧮 Copy counter — sortable “Copies” column on the admin list, so you can see what’s popular.
- ⚙️ Settings page — default label, default CSS class, tooltip text, guest-access toggle.
- 📝 CodeMirror editor on the snippet edit screen — keeps your indentation and angle brackets intact.
- ⚡ Tiny footprint — no jQuery dependency on the frontend, no external libraries.
- 🌐 Translation-ready.
Comment cela fonctionne
- You add a snippet in Code Snippets → Add New and note its ID.
- You drop the Clipboard Snippet block (or the
[clipsnco_code_copy_btn]shortcode) onto any page. - When a visitor clicks the button, the snippet is fetched over AJAX and written to their clipboard — without ever appearing in the page source (unless you turned on inline mode).
Usage
Quick start (shortcode)
[clipsnco_code_copy_btn id="123" label="Copy Code"]
Where 123 is the ID of your snippet (visible in the Code Snippets admin list).
Attributs de code court
id(required, integer) — the snippet ID.label(optional, string) — button text. Defaults to the value set on the Settings page.class(optional, string) — extra CSS classes added to the button.inline(optional, “yes” / “no”) — whenyes, the snippet is rendered as a<pre><code>block with a copy button on top. Defaultno.language(optional, string) — e.g.php,js,css. Adds alanguage-xxxclass on the<code>element so syntax-highlighter libraries (Prism.js, highlight.js) can colourise it.
Exemples :
- Hidden snippet, custom label:
[clipsnco_code_copy_btn id="42" label="Copy shortcode"] - Inline display with PHP highlighting:
[clipsnco_code_copy_btn id="42" inline="yes" language="php"] - Extra CSS class for theme styling:
[clipsnco_code_copy_btn id="42" class="my-cta-btn"]
Gutenberg Bloc
In the block editor, search for “Clipboard Snippet” and insert it. The sidebar lets you set:
- Snippet ID — the post ID of the snippet to copy.
- Button label — overrides the default label.
- Show code inline — toggle hidden vs inline display.
- Language hint — optional syntax-highlighter class.
The block is server-rendered, so you can switch between block and shortcode usage freely.
Alternative button markup
If your page builder won’t let you drop a <button> element, you can put any element on the page with the data attribute or the helper class — the plugin’s frontend script picks it up automatically:
<a href="#" class="wcp-code-copy-btn" data-codecopy-id="123">Copy</a>
…or, when even attributes aren’t allowed, use the class-only form:
<span class="wcp-code-copy-btn data-codecopy-id-123">Copy</span>
Réglages
Code Snippets → Settings lets you configure:
- Default button label
- Default CSS class applied to every button
- Tooltip text shown on copy success / failure
- Whether non-logged-in visitors are allowed to copy snippets
Copy counter
Every successful copy by a non-editor user bumps a _clipsnco_copy_count post meta value. The count is shown in the Copies column on the snippets admin list. Click the column header to sort by most-copied.
Styling
The button receives the class wcp-code-copy-btn plus anything you add via the shortcode/block class attribute. The inline-mode wrapper uses these classes (override them from your theme):
.clipsnco-inline-wrap— outer container.clipsnco-inline-toolbar— top bar containing the copy button.clipsnco-pre— the<pre>element.clipsnco-code— the<code>element (also getslanguage-xxxwhen set)
Installation
- Upload the plugin files to
/wp-content/plugins/clipboard-snippet-copier, or install it directly from the WordPress.org repository. - Activate the plugin through the Plugins screen.
- Go to Code Snippets → Add New to create your first snippet.
- Insert the Clipboard Snippet block on any page, or paste the shortcode below.
Journal de modifications
Adds a Gutenberg block, inline show-the-code mode, a settings page, per-snippet copy counter and CodeMirror editing. Drop-in upgrade — existing shortcodes keep working unchanged.
1.4
- New: Gutenberg block “Clipboard Snippet” with sidebar controls (id, label, inline toggle, language hint).
- New: Inline mode — render the snippet visibly as a
<pre><code>block with a copy button on top (inline="yes"). - New: Language hint attribute that emits a
language-xxxclass for syntax highlighters. - New: Settings page — default label, default CSS class, tooltip text, guest-access toggle.
- New: Copy counter per snippet, shown as a sortable admin column.
- New: CodeMirror editor on the snippet edit screen for proper code formatting.
- Improvement: Frontend script no longer depends on jQuery.
- Improvement: Centralised
CLIPSNCO_VERSIONconstant used across asset enqueues. - Improvement: Translations now properly loaded via
load_plugin_textdomain(). - Improvement: Escaped admin column output.
- Improvement: AJAX response now includes a
contentkey (legacyshortcodekey preserved for backwards compatibility). - Fix: Removed stray
console.logfrom the frontend script.
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.
Captures d'écran
Pour les développeurs
Est-ce votre plugin ? Montrez les chiffres.
Ajoutez un badge en direct à votre site, docs ou github readme. Il se met à jour par lui-même - aucun compte n'est nécessaire.
Best Clipboard Snippet Copier alternatives
All clipboard plugins →FAQ
Clipboard Snippet Copier: quick answers
Réponses directes, extraites des données en direct WordPress.org.
Source : WordPress.org
Is Clipboard Snippet Copier free?
Yes. Clipboard Snippet Copier is free to download and use from the official WordPress.org plugin directory.
Is Clipboard Snippet Copier safe to use in 2026?
Clipboard Snippet Copier works, but test it on a staging site before relying on it in 2026. Was last updated 7 months ago, and scores 43/100 on our health check.
How many websites use Clipboard Snippet Copier?
Clipboard Snippet Copier is active on <10 WordPress websites and has been downloaded 914 times since it launched in October 2025. It was downloaded 83 times in the last 30 days.
Does Clipboard Snippet Copier work with WordPress 7.1?
Clipboard Snippet Copier is officially tested up to WordPress 7.0.9, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
What PHP version does Clipboard Snippet Copier need?
Clipboard Snippet Copier requires PHP 7.2 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Clipboard Snippet Copier last updated?
The latest version, 1.4, was released on May 21, 2026 (7 months ago).
Who makes Clipboard Snippet Copier?
Clipboard Snippet Copier is developed and maintained by WebCodingPlace.
What are the best alternatives to Clipboard Snippet Copier?
The most popular alternatives to Clipboard Snippet Copier are Copy Anything to Clipboard… (10K+ installs), The Paste (9K+ installs) and Simple Export to Markdown (300+ installs).
Propulsé par PageForge
Un modèle et une feuille de calcul. Une vraie page pour chaque recherche.
PageForge transforme chaque ligne d'un CSV en une page WordPress avec son propre titre, URL, SEO et schéma, construit sur la mise en page que vous Déjà conçu. Gratuit sur WordPress.org.
- CSV et XLSX, plus Google Sheets sur les professionnels et les entreprises
- Son propre titre, URL, SEO champs et schéma pour chaque page
- Fonctionne avec l'éditeur de blocs, Elementor, Divi et Avada
- Gratuit sur WordPress.org, pas de carte de crédit
