Este plugin no se ha probado con las últimas 3 versiones mayores de WordPress. Puede que ya no tenga soporte ni lo mantenga nadie, o puede que tenga problemas de compatibilidad cuando se usa con las versiones más recientes de WordPress.

Dessky Snippets

Descripción

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.

Instalación

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.

Preguntas frecuentes

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«.

Reseñas

Leer la 1 reseña

Colaboradores y desarrolladores

«Dessky Snippets» es un software de código abierto. Las siguientes personas han colaborado con este plugin.

Colaboradores

Traduce «Dessky Snippets» a tu idioma.

¿Interesado en el desarrollo?

Revisa el código , echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.

Registro de cambios

1.1

  • Various improvements.

1.0

  • Initial release.