Code Snippets Extended


Using this plugin, you can create code chunks(or snippets) and use them in posts or pages on your site.

In one snippet you can use different code types: js, php, css, just set required tags.

  • <?php ?> – for php code,
  • <script></script>, – for js code,
  • <style></style> – for stylesheets.

Also you can test snippet code, before save it.
If you want to add your custom language support – write me email. We will translate this plugin together.
Video Overwiew:

I express my gratitude to Jonas Dahl. He helped me with a lot of bugs.
Jonas Dahl translated this plugin into Deutche language.


I express my gratitude to Jonas Dahl. He helped me with a lot of bugs.

Jonas Dahl translated this plugin into Deutche language.

Imagens de tela

  • Main page of Code Snippets Extended tool. Here we see two snippet. We can Change them or Delete. Also On - will enable snippet to work. Off - i think you already know what do this command =).
  • Here we see Add Snippet Page.
  • We can Test our code now, or save snippet to database.
  • If you press on the Test Code button - on top of the page will be shown block with code execution results.
  • On WordPress editor panel will be added button. This button help you to insert shortcodes inside post content. Watch on the next screen.
  • Pop-up window with lost of all snippets
  • After save article snippet starts work.


Easy as can be. You can install this plugin from WordPress Admin. Just type into Search field Code Snippets Extended and Enjoy!

Otherwise you can download zip archieve from link on that page and unpack it inside your /wp-content/plugins/ folder. Then just activate it from Admin.


I need to use `<?php ?>` tags in my snippet?

Yes. You must use them to run php code inside snippet.

Can i use <? ?> tags?

No, sorry.

Please tell me editor commands.

  • Ctrl-F / Cmd-F – Standart search and search by mask.

Can i use snippets on my funcions.php?

Not yet. I working on this.

I have idea!/I have problem

Okay. Just write it to I will answer you.
Thank you.


19 de janeiro de 2018
Nice idea of a plugin. Sadly however php code doesn't work. Even the provided examples are not running as the " are all escaped. Too bad 🙁
29 de setembro de 2017
allows us to add php anywhere using shortcodes. No more messing with functions.php file, making custom page templates or spawning child themes for a bit of custom logic. AMAZING
3 de setembro de 2016
Very very good! Using a very simple and a good helper!
Leia todas as 10 avaliações

Colaboradores e desenvolvedores

“Code Snippets Extended” é um software com código aberto. As seguintes pessoas contribuíram para este plugin.


Registro de alterações


  • test button fix


  • shortcode non-utf chars and slashes bugfix


  • now you can put shortcodes inside plugin shortcode $content


  • fix for no iconv users


  • non utf8 chars in shortcode bugfix


  • Arguments small fix
  • Add Snippet page markup small fix
  • editor size now is, well … responsive
  • another AddSnippet page bottom fix
  • add word wrap editor option


  • New arguments for snippets
  • More documentation
  • Is eval available check


  • Fixed <textarea> bug and wp_lightbox bug


  • Fully translated to english


  • Fixed eval bug


  • Added media upload buton into snippet editor


  • Changed database access to be compatible with multisite wordpress configuration


  • Traslations added
  • Changed js and css files embed mechanism