Skip to content
Code Snippets WordPress Plugin
PHP JavaScript CSS Shell
Branch: develop
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
css
js Validate a snippet's code before activating Jan 24, 2020
languages Don't update the modification date when activating and deactivating Jan 25, 2020
php
screenshots Replace Grunt with gulp Nov 22, 2018
tests
.gitignore Replace Grunt with gulp Nov 22, 2018
.travis.yml Don't test on PHP versions which do not support PHPUnit 7 Jan 23, 2020
CHANGELOG.md Rename modified column and add default value Jan 25, 2020
MENTIONS.md Replace parser class with a code validation class Jul 1, 2019
README.md Rename modified column and add default value Jan 25, 2020
code-snippets.php Rename modified column and add default value Jan 25, 2020
composer.json Don't test on PHP versions which do not support PHPUnit 7 Jan 23, 2020
composer.lock Regenerate pot file Jan 25, 2020
gulpfile.babel.js Have gulp use the version of PHPUnit installed through Composer Jan 23, 2020
license.txt Update copyright year for 2020 Jan 18, 2020
package-lock.json Rename modified column and add default value Jan 25, 2020
package.json Rename modified column and add default value Jan 25, 2020
phpcs.xml Remove false positives from phpcs results Jan 23, 2020
phpunit.xml Attempt to allow PHPUnit testing to work on php5.6 and 7.0 Jan 23, 2020
readme.txt Rename modified column and add default value Jan 25, 2020
uninstall.php Access table names from the DB class instead of from WPDB Sep 28, 2018

README.md

Code Snippets Build Status

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.

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.

Code Snippets provides graphical interface, similar to the Plugins menu, for managing snippets. Snippets can 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 side, either in JSON for later importing by the Code Snippets plugin, or in PHP for creating your own plugin or theme.

If you have any feedback, issues, or suggestions for improvements please leave a topic in the Support Forum, or join the community on Facebook.

If you like this plugin, or it is useful to you in some way, please consider reviewing it on WordPress.org.

Translations

Code Snippets can be used in these different languages thanks to the following translators:

You can’t perform that action at this time.