{"id":55207,"date":"2017-03-22T19:08:41","date_gmt":"2017-03-22T19:08:41","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/dessky-snippets\/"},"modified":"2026-03-24T13:22:31","modified_gmt":"2026-03-24T13:22:31","slug":"dessky-snippets","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/dessky-snippets\/","author":14117622,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1","stable_tag":"trunk","tested":"6.9.4","requires":"3.9","requires_php":"","requires_plugins":null,"header_name":"Dessky Snippets","header_author":"Dessky","header_description":"","assets_banners_color":"262b30","last_updated":"2026-03-24 13:22:31","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/dessky.com","rating":5,"author_block_rating":0,"active_installs":400,"downloads":4655,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0":{"tag":"1.0","author":"dessky","date":"2017-03-25 16:02:28"},"1.1":{"tag":"1.1","author":"dessky","date":"2026-03-24 13:22:31"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2974338,"resolution":"128x128","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2974338,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2974338,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[18609,18610,9309,240398,222221],"plugin_category":[],"plugin_contributors":[84343],"plugin_business_model":[],"class_list":["post-55207","plugin","type-plugin","status-publish","hentry","plugin_tags-code-snippets","plugin_tags-code-snippets-plugin","plugin_tags-snippet","plugin_tags-snippets","plugin_tags-wp-snippets","plugin_contributors-dessky","plugin_committers-dessky"],"banners":{"banner":"https:\/\/ps.w.org\/dessky-snippets\/assets\/banner-772x250.png?rev=2974338","banner_2x":"https:\/\/ps.w.org\/dessky-snippets\/assets\/banner-1544x500.png?rev=2974338","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/dessky-snippets\/assets\/icon-128x128.png?rev=2974338","icon_2x":false,"generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This is a lightweight and simple plugin that gives you the ability to easily add your custom PHP code from WordPress admin.<\/p>\n\n<p>No need for editing functions.php file any more, you can easily add new PHP code with this plugin.<\/p>\n\n<p>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.<\/p>\n\n<p>This plugin was developed by <a href=\"https:\/\/dessky.com\/\">Dessky Team<\/a>.<\/p>\n\n<p>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 <a href=\"https:\/\/discuss.dessky.org\/t\/dessky-snippets\">Start a Discussion<\/a>.<\/p>\n\n<p><a href=\"https:\/\/discuss.dessky.org\/t\/dessky-snippets\">DISCUSS WITH THE DESSKY TEAM<\/a><\/p>\n\n<p><a href=\"https:\/\/discuss.dessky.org\/t\/dessky-snippets\">JOIN OUR OPEN COMMUNITY<\/a>: 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.<\/p>\n\n<p>You can also <a href=\"https:\/\/dessky.me\/\">GET THE PREMIUM SUPPORT<\/a><\/p>\n\n<p><a href=\"https:\/\/dessky.org\/\">User Documentation<\/a>: Although Dessky Snippets is already easy to set up, we\u2019ve put together tutorials, guides, and some knowledge bases to help you set up and get started with it.<\/p>\n\n<p>I have further questions, how do I contact you?<\/p>\n\n<p>Please fill up the <a href=\"https:\/\/dessky.com\/contact\/\">contact form<\/a> and we would be more than happy to assist.<\/p>\n\n<h4>Features<\/h4>\n\n<ul>\n<li>Validate the entered code for fatal errors (basic validation)<\/li>\n<li>Checkbox for disabling the custom functions<\/li>\n<li>Syntax highlighting (by CodeMirror)<\/li>\n<li>Line numbers<\/li>\n<\/ul>\n\n<h4>Credits<\/h4>\n\n<p><a href=\"https:\/\/codemirror.net\/\">CodeMirror<\/a> is an open-source project shared under the <a href=\"https:\/\/codemirror.net\/LICENSE\">MIT license<\/a>.<\/p>\n\n<p>Dessky Snippets is based on the 'My Custom Functions' plugin developed by <a href=\"https:\/\/profiles.wordpress.org\/arthur-gareginyan\/\">Arthur Gareginyan<\/a>.<\/p>\n\n<p>Scissors graphic is made by <a href=\"http:\/\/www.flaticon.com\/authors\/appzgear\">Appzgear<\/a> and it is licensed under <a href=\"http:\/\/creativecommons.org\/licenses\/by\/3.0\/\">Creative Commons BY 3.0<\/a>.<\/p>\n\n<p>Code graphic is made by <a href=\"http:\/\/www.freepik.com\">Freepik<\/a> and it is licensed under <a href=\"http:\/\/creativecommons.org\/licenses\/by\/3.0\/\">Creative Commons BY 3.0<\/a>.<\/p>\n\n<!--section=installation-->\n<p>Install \"Dessky Snippets\" just as you would any other WordPress Plugin.<\/p>\n\n<p>After installation, a \"<code>Dessky Snippets<\/code>\" menu item will appear under the \"<code>Appearance<\/code>\" section. It will lead you to a page where you can add your custom PHP code.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id=\"q.%20will%20this%20plugin%20work%20on%20my%20wordpress.com%20website%3F\"><h3>Q. Will this plugin work on my WordPress.COM website?<\/h3><\/dt>\n<dd><p>A. Sorry, this plugin is available for use only on self-hosted (WordPress.org) websites.<\/p><\/dd>\n<dt id=\"q.%20does%20this%20plugin%20require%20theme%20modifications%3F\"><h3>Q. Does this plugin require theme modifications?<\/h3><\/dt>\n<dd><p>A. Absolutely not. This plugin is added\/configured entirely from the WordPress Admin section.<\/p><\/dd>\n<dt id=\"q.%20how%20does%20it%20work%3F\"><h3>Q. How does it work?<\/h3><\/dt>\n<dd><p>A. Just place your PHP code into the textfield and click \"Save Changes\". Example of PHP code:\n    function MyAwesomeFunction() {<\/p>\n\n<pre><code>    \/\/ Content of my awesome function\n\n}\n<\/code><\/pre><\/dd>\n<dt id=\"q.%20on%20the%20plugin%20settings%20page%2C%20an%20error%20message%20appears.%20what%20could%20be%20wrong%3F\"><h3>Q. On the plugin settings page, an error message appears. What could be wrong?<\/h3><\/dt>\n<dd><p>A. Here are a few of the most likely causes of the error message:<\/p>\n\n<ol>\n<li>You make a syntax error in the code that you have entered. Check the syntax of your code and try again.<\/li>\n<li>You have entered function with a name that is already occupied by another function. Use a unique name for your function.<\/li>\n<li>You are trying to overwrite an existing function (of WordPress, theme, or plugin). Instead, use filters and hooks.<\/li>\n<\/ol><\/dd>\n<dt id=\"q.%20what%20to%20do%20if%20this%20plugin%20caused%20the%20white%20screen%3F\"><h3>Q. What to do if this plugin caused the white screen?<\/h3><\/dt>\n<dd><p>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.<\/p>\n\n<p>Go to plugin folder (in <code>wp-content\/plugins\/dessky-snippets\/<\/code>). Rename the \"<code>START<\/code>\" file to \"<code>STOP<\/code>\". Then you may go to plugin settings page and edit your entered custom code. After editing, just rename the \"<code>STOP<\/code>\" file that you renamed before back to \"<code>START<\/code>\".<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1<\/h4>\n\n<ul>\n<li>Various improvements.<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Add your custom PHP code snippet from WordPress admin.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/55207","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=55207"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/dessky"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=55207"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=55207"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=55207"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=55207"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=55207"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=55207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}