An easy, clean and simple way to add code snippets to your site.
Further documentation available on the plugin website.
No, just copy all the content inside those tags. If you accidentally forget (or just like being lazy), the tags will be stripped from the beginning and end of the snippet when you save it. You can, however, use those tags inside your snippets to start and end HTML sections.
Yes. Just add it but do not activate it yet.
Snippets that you add to this plugin are not meant to be inserted into the text editor. Instead, they are run on your site just as if they were added to your functions.php file.
The CodeMirror source-code editor will add line numbers, syntax highlighting, bracket matching, search, tabulate and other cool features to the code editor.
No, the snippets are added to the WordPress database so are independent of the theme and unaffected by WordPress upgrades.
Yes, when you delete Code Snippets using the 'Plugins' menu in WordPress it will clean up the database table and a few other bits of data. Be careful not to remove Code Snippets using the Plugins menu unless you want this to happen.
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.
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.
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.
Users of Code Snippets version 1.7 and later can install the Code Snippets Tags plugin for the ability to add tags to snippets, and then later filter the snippets by tag for easier organization.
Requires: 3.3 or higher
Compatible up to: 3.6
Last Updated: 2013-5-2
7 of 12 support threads in the last two months have been resolved.
Got something to say? Need help?