| 开发者 | webcodingplace |
|---|---|
| 更新时间 | 2026年5月25日 14:03 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.2 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
<pre><code> block with a copy button on top.[clipsnco_code_copy_btn] shortcode) onto any page./wp-content/plugins/clipboard-snippet-copier, or install it directly from the WordPress.org repository.Yes. Drop as many blocks/shortcodes as you like — each one copies its own snippet.
Only if you enable inline mode. In the default hidden mode the snippet lives in the WordPress admin and is fetched over AJAX the moment the button is clicked.
Yes. Place the [clipsnco_code_copy_btn] shortcode in any text/HTML widget, content block or builder element.
Yes — that's inline mode. Set inline="yes" on the shortcode or flip the Show code inline toggle on the block.
Yes. In inline mode, add the language attribute (language="php", language="js", …) and the plugin emits a matching language-xxx class on the <code> element. Prism.js, highlight.js and most other highlighters pick that up automatically.
Go to Code Snippets in the admin. The Copies column shows the running total; click the header to sort.
Yes. Code Snippets → Settings → Allow guests controls this.
No. The frontend script uses native fetch and the Clipboard API, with an execCommand fallback for older/insecure contexts.
Yes — text domain clipboard-snippet-copier, translations loaded from the /languages folder.
<pre><code> block with a copy button on top (inline="yes").language-xxx class for syntax highlighters.CLIPSNCO_VERSION constant used across asset enqueues.load_plugin_textdomain().content key (legacy shortcode key preserved for backwards compatibility).console.log from the frontend script.wp_enqueue_style().