Code Snippets WordPress Plugin
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
css Change color of execute snippet button on hover Jan 18, 2019
js Use CSS for the keyboard shortcut tooltip instead of pure HTML Jan 17, 2019
languages Add execute button for single-use snippets Jan 18, 2019
php Properly handle execution of single-use network shared snippets Jan 18, 2019
screenshots Replace Grunt with gulp Nov 22, 2018
tests Properly call install bash script Nov 22, 2018
.gitignore Replace Grunt with gulp Nov 22, 2018
.travis.yml Don't run tests on PHP 7.2, as it uses an incompatible version of PHP… Dec 15, 2018
CHANGELOG.md Update changelog Dec 17, 2018
MENTIONS.md Fix test issues Dec 15, 2018
README.md Update French translation thanks to momo-fr Jan 15, 2019
code-snippets.php Update version number to 2.13.0 Dec 17, 2018
codesniffer.ruleset.xml Fix test issues Dec 15, 2018
composer.json Split WordPress testing library installation into its own script Nov 22, 2018
composer.lock Translate plugin into French Jan 8, 2019
gulpfile.babel.js Add execute button for single-use snippets Jan 18, 2019
license.txt Update copyright year Jan 13, 2018
package-lock.json Update French translation thanks to momo-fr Jan 15, 2019
package.json Update French translation thanks to momo-fr Jan 15, 2019
phpunit.xml Split WordPress testing library installation into its own script Nov 22, 2018
readme.txt Update French translation thanks to momo-fr Jan 15, 2019
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 add code snippets to your site. It removes the need to add custom snippets to your theme 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: