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.


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


2018년 1월 19일
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 🙁
2017년 9월 29일
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
2016년 9월 3일
Very very good! Using a very simple and a good helper!
모든 10 평가 읽기

기여자 & 개발자

“Code Snippets Extended”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.


자국어로 “Code Snippets Extended”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.



  • 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