Linux 软件免费装
Banner图

Dessky Snippets

开发者 dessky
更新时间 2024年8月8日 15:34
PHP版本: 3.9 及以上
WordPress版本: 6.6
版权: GPL3
版权网址: 版权信息

标签

php snippets code functions snippet code snippet custom php code snippets dessky custom snippet custom functions php code code snippets plugin wp snippets snippet plugin snippets plugin

下载

1.0 1.1

详情介绍:

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 Team. Dessky Team does not provide support for the Dessky Snippets on the WordPress.org forums. In order to get support or make a suggestion from a Dessky Team you will have to Join Our Open Community and Start a Discussion. DISCUSS WITH THE DESSKY TEAM JOIN OUR OPEN COMMUNITY: The purpose of this open community is to have a collective place where the community can help each other, and we can get some feedback to improve Dessky Snippets as well. Joining the community is also a great way to connect with like-minded people and share your experience. You can also GET THE PREMIUM SUPPORT User Documentation: Although Dessky Snippets is already easy to set up, we’ve put together tutorials, guides, and some knowledge bases to help you set up and get started with it. I have further questions, how do I contact you? Please fill up the contact form and we would be more than happy to assist. Features 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.

安装:

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.

常见问题:

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

更新日志:

1.1 1.0