このプラグインは WordPress の最新3回のメジャーリリースに対してテストされていません。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress で使用した場合は互換性の問題が発生する可能性があります。

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.
Great changes coming soon!

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

Thanks

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.

FAQ

Installation Instructions

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 aftamat4ik@gmail.com 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
9件のレビューをすべて表示

貢献者と開発者

Code Snippets Extended はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“Code Snippets Extended” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

1.4.5

  • test button fix

1.4.5

  • shortcode non-utf chars and slashes bugfix

1.4.4

  • now you can put shortcodes inside plugin shortcode $content

1.4.3

  • fix for no iconv users

1.4.2

  • non utf8 chars in shortcode bugfix

1.4.1

  • 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

1.4.0

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

1.3.92

  • Fixed <textarea> bug and wp_lightbox bug

1.3.2

  • Fully translated to english

1.3.1

  • Fixed eval bug

1.3.0

  • Added media upload buton into snippet editor

1.0.1

  • Changed database access to be compatible with multisite wordpress configuration

1.0

  • Traslations added
  • Changed js and css files embed mechanism