Dessky Snippets

Description

This is a lightweight and simple plugin that gives you the ability to easily add your custom PHP code from WordPress admin.

No need for editing functions.php file any more, you can easily add new PHP code with this plugin.

It’s really useful in case of any theme update, because your custom PHP code will never be overwritten even if you upgrade or switch your theme.

This plugin was developed by Dessky.

Premium Support
Unfortunately Dessky team does not provide support for the Dessky Snippets on the WordPress.org forums. In order to get support from a Dessky Team you will have to purchase it here.

Bug Reports
Bug reports for the Dessky Snippets plugin are welcomed on WordPress.org Forums. Dessky Team will respond only to the posts that are properly qualified as bugs and fix them as soon as possible.

Features

  • Validate the entered code for fatal errors (basic validation)
  • Checkbox for disabling the custom functions
  • Syntax highlighting (by CodeMirror)
  • Line numbers

Credits

CodeMirror is an open-source project shared under the MIT license.

Dessky Snippets is based on the ‘My Custom Functions’ plugin developed by Arthur Gareginyan.

Scissors graphic is made by Appzgear and it is licensed under Creative Commons BY 3.0.

Code graphic is made by Freepik and it is licensed under Creative Commons BY 3.0.

Installation

Install “Dessky Snippets” just as you would any other WordPress Plugin.

After installation, a “Dessky Snippets” menu item will appear under the “Appearance” section. It will lead you to a page where you can add your custom PHP code.

FAQ

Q. Will this plugin work on my WordPress.COM website?

A. Sorry, this plugin is available for use only on self-hosted (WordPress.org) websites.

Q. Does this plugin require theme modifications?

A. Absolutely not. This plugin is added/configured entirely from the WordPress Admin section.

Q. How does it work?

A. Just place your PHP code into the textfield and click “Save Changes”. Example of PHP code:
function MyAwesomeFunction() {

    // Content of my awesome function

}

Q. On the plugin settings page, an error message appears. What could be wrong?

A. Here are a few of the most likely causes of the error message:

  1. You make a syntax error in the code that you have entered. Check the syntax of your code and try again.
  2. You have entered function with a name that is already occupied by another function. Use a unique name for your function.
  3. You are trying to overwrite an existing function (of WordPress, theme, or plugin). Instead, use filters and hooks.

Q. What to do if this plugin caused the white screen?

A. It may be that a custom code that you’ve entered caused the error and white screen of death. If this happened then do the following.

Go to plugin folder (in wp-content/plugins/dessky-snippets/). Rename the “START” file to “STOP“. Then you may go to plugin settings page and edit your entered custom code. After editing, just rename the “STOP” file that you renamed before back to “START“.

Reviews

Read all 1 review

Contributors & Developers

“Dessky Snippets” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Dessky Snippets” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.1

  • Various improvements.

1.0

  • Initial release.