Linux 软件免费装
Banner图

Code Snippets

开发者 bungeshea
ver3
lightbulbman
codesnippetspro
0aksmith
更新时间 2023年7月5日 19:23
捐献地址: 去捐款
WordPress版本: 6.2.2
版权: MIT
版权网址: 版权信息

标签

html css javascript php multisite snippets code functions

下载

2.14.1 3.4.1 1.2 1.3.2 1.4 1.5 1.6 1.6.1 1.7 1.7.1 1.7.1.1 1.7.1.2 1.8 1.8.1.1 1.9 1.9.1 1.9.1.1 2.0 2.0.1 2.1.0 2.2.0 2.2.1 2.2.2 2.2.3 2.3.0 2.4.1 2.4.2 2.5.0 2.6.0 2.6.1 2.7.0 2.8.0 2.8.1 2.8.2 2.9.1 2.9.2 2.9.3 2.9.4 2.9.5 2.9.6 3.2.2 2.13.3 1.1 2.8.3 2.14.6 3.3.0 1.3 1.8.1 2.12.1 2.4.0 2.8.4 1.0 2.8.5 2.9.0 2.13.2 2.14.3 3.1.0 2.10.0 2.14.4 2.13.0 3.0.1 3.1.1 2.13.1 2.14.5 3.2.1 2.10.1 2.12.0 2.14.0 2.14.2 3.0.0 3.4.0

详情介绍:

Code Snippets is an easy, clean and simple way to run code snippets on your site. It removes the need to add custom snippets to your theme's functions.php file. Code Snippets Pro is now available, with full CSS, JavaScript, Gutenberg and Elementor integrations. A snippet is a small chunk of PHP code that you can use to extend the functionality of a WordPress-powered website; essentially a mini-plugin with less load on your site. Most snippet-hosting sites tell you to add snippet code to your active theme's functions.php file, which can get rather long and messy after a while. Code Snippets changes that by providing a GUI interface for adding snippets and actually running them on your site just as if they were in your theme's functions.php file. Quick overview of Code Snippets by Imran Siddiq https://youtu.be/EMjIWjcYONk Code Snippets provides graphical interface, similar to the Plugins menu, for managing snippets. Snippets can be activated and deactivated, just like plugins. The snippet editor includes fields for a name, a visual editor-enabled description, tags to allow you to categorize snippets, and a full-featured code editor. Snippets can be exported for transfer to another site, either in JSON for later importing by the Code Snippets plugin, or in PHP for creating your own plugin or theme. Comprehensive Code Snippets tutorial with practical examples by Ferdy Korpershoek https://youtu.be/29jD2BcBX5w If you have any feedback, issues, or suggestions for improvements please leave a topic in the Support Forum, join the community on Facebook, or check us out on GitHub. If you like this plugin, or it is useful to you in some way, please consider reviewing it on WordPress.org.

安装:

自动安装
  1. Log into your WordPress admin
  2. Click Plugins
  3. Click Add New
  4. Search for Code Snippets
  5. Click Install Now under "Code Snippets"
  6. Activate the plugin
手动安装
  1. Download the plugin
  2. Extract the contents of the zip file
  3. Upload the contents of the zip file to the wp-content/plugins/ folder of your WordPress installation
  4. Activate the Code Snippets plugin from 'Plugins' page.
Network Activating Code Snippets through the Network Dashboard will enable a special interface for running snippets across the entire network.

屏幕截图:

  • Adding a new snippet
  • Editing a snippet
  • Importing snippets from an export file

升级注意事项:

3.4.0 New editor screen and code error checking. 3.3.0 Assorted bug fixes and additional filter hooks. 3.2.2 Tested with WordPress 6.1.1.

常见问题:

How can I recover my site if it is crashed by a buggy snippet?

A full list of our Frequently Asked Questions can be found at help.codesnippets.pro. You can recover your site by enabling the Code Snippets safe mode feature. Instructions for how to turn it on are available here: https://help.codesnippets.pro/article/12-safe-mode.

Will I lose my snippets if I change the theme or upgrade WordPress?

No, the snippets are stored in the WordPress database, independent of the theme and unaffected by WordPress upgrades.

Can the plugin be completely uninstalled?

If you enable the 'Complete Uninstall' option on the plugin settings page, Code Snippets will clean up all of its data when deleted through the WordPress 'Plugins' menu. This includes all stored snippets. If you would like to preserve the snippets, ensure they are exported first.

Can I copy snippets that I have created to another WordPress site?

Yes! You can individually export a single snippet using the link below the snippet name on the 'Manage Snippets' page or bulk export multiple snippets using the 'Bulk Actions' feature. Snippets can later be imported using the 'Import Snippets' page by uploading the export file.

Can I export my snippets to PHP for a site where I'm not using the Code Snippets plugin?

Yes. Click the checkboxes next to the snippets you want to export, and then choose Export to PHP from the Bulk Actions menu and click Apply. The generated PHP file will contain the exported snippets' code, as well as their name and description in comments.

Can I run network-wide snippets on a multisite installation?

You can run snippets across an entire multisite network by Network Activating Code Snippets through the Network Dashboard. You can also activate Code Snippets just on the main site, and then individually on other sites of your choice.

Where are the snippets stored in my WordPress database?

Snippets are stored in the wp_snippets table in the WordPress database. The table name may differ depending on what your table prefix is set to.

Where can I go for help or suggest new features?

You can get help with Code Snippets, report bugs or errors, and suggest new features and improvements either on the WordPress Support Forums or on GitHub

How can I help contribute to the development of the Code Snippets plugin?

The best way to do this is to fork the repository on GitHub and send a pull request.

更新日志:

3.4.1 (29 Jun 2023) 3.4.0 (17 May 2023) 3.3.0 (09 Mar 2023) 3.2.2 (17 Nov 2022) 3.2.1 (05 Oct 2022) 3.2.0 (22 July 2022) 3.1.2 (3 July 2022) 3.1.1 (13 Jun 2022) 3.1.0 (17 May 2022) 3.0.1 (14 May 2022) 3.0.0 (14 May 2022) Added Changed Deprecated New in Pro 2.14.6 (13 May 2022) 2.14.5 (10 May 2022) 2.14.4 (5 May 2022) 2.14.3 (10 Dec 2021) 2.14.2 (9 Sep 2021) 2.14.1 (10 Mar 2021) 2.14.0 (26 Jan 2020)