[WordPress] 外掛分享: Clipboard Snippet Copier

首頁外掛目錄 › Clipboard Snippet Copier
全新外掛
安裝啟用
尚無評分
102 天前
最後更新
問題解決
WordPress 5.0+ PHP 7.2+ v1.2 上架:2025-10-12

內容簡介

<!DOCTYPE html>
<html lang="zh-tw">
<head>
<meta charset="UTF-8">
<title>Clipboard Snippet Copier WordPress 外掛介紹</title>
</head>
<body>
<h2>總結:</h2>
<p>Clipboard Snippet Copier 可讓您向用戶提供示範代碼、shortcodes 或任何可重覆使用的片段。透過安全地存儲這些片段以及在用戶點擊複製時僅通過 AJAX 從 WordPress 管理員處提取,而不在頁面上暴露原始代碼。</p>

<h2>問題與答案:</h2>
<ul>
<li>
<h3>這個外掛的功能特色有哪些?</h3>
<ul>
<li>📋 直接將任何片段/shortcode 複製到剪貼板。</li>
<li>🔒 片段不在前端顯示 - 僅透過 AJAX 提取。</li>
<li>⚡ 輕量且安全(使用 WordPress AJAX + nonce 技術)。</li>
<li>🖱️ 支援在同一頁面上使用多個按鈕。</li>
<li>🎨 輕鬆與任何主題或頁面建構器集成。</li>
</ul>
</li>
<li>
<h3>可以如何應用此外掛?</h3>
<ul>
<li>提供 WPBakery 示範 shortcodes 給您的用戶。</li>
<li>分享 Gutenberg 區塊模板作為代碼片段。</li>
<li>提供客戶 shortcode 預設值,而不暴露雜亂的代碼。</li>
</ul>
</li>
<li>
<h3>如何使用此外掛?</h3>
<ol>
<li>在「代碼片段」->「新增」中加入一個新的片段。</li>
<li>為您的參考提供標題。</li>
<li>在代碼編輯器中粘貼代碼。</li>
<li>在內容中放置帶有 ID 的按鈕:[clipsnco_code_copy_btn id=&#8221;123&#8243; label=&#8221;複製示範&#8221;]</li>
<li>當使用者點擊按鈕時,片段將被複製到他們的剪貼板中(未呈現)。</li>
</ol>
</li>
</ul>
</body>
</html>

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Clipboard Snippet Copier」→ 直接安裝(推薦)

原文外掛簡介

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

延伸相關外掛

文章
Filter
Apply Filters
Mastodon