Title: Visual Shortcodes
Author: J B
Published: <strong>2011年8月18日</strong>
Last modified: 2013年1月12日

---

プラグインを検索

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

![](https://s.w.org/plugins/geopattern-icon/visual-shortcodes.svg)

# Visual Shortcodes

 作者: [J B](https://profiles.wordpress.org/johnpbloch/)

[ダウンロード](https://downloads.wordpress.org/plugin/visual-shortcodes.0.1.zip)

 * [詳細](https://ja.wordpress.org/plugins/visual-shortcodes/#description)
 * [レビュー](https://ja.wordpress.org/plugins/visual-shortcodes/#reviews)
 *  [インストール](https://ja.wordpress.org/plugins/visual-shortcodes/#installation)
 * [開発](https://ja.wordpress.org/plugins/visual-shortcodes/#developers)

 [サポート](https://wordpress.org/support/plugin/visual-shortcodes/)

## 説明

This is a utility plugin that will allow other plugins and themes to swap out shortcodes
with custom images, in the same way that WordPress’ native gallery shortcode does
this. Replacement images can be clicked to reveal a ‘delete’ button.

This works extremely well when your shortcode already has a tinymce button, but 
does work for manual shortcodes too.

This plugin does not support multi-line shortcodes or non-self-closing shortcodes(
e.g. it supports `[foo bar="baz"]` but not `[foo]bar baz[/foo]`). Honestly, I don’t
even know what would happen if you tried to use one. It may work, but it’s entirely
unsupported.

To add your shortcode, hook onto the filter `'jpb_visual_shortcodes'`. That filter
will pass one array as an argument. Each element of that array is an associative
array which must contain values for the following keys:

 * `shortcode` The name of the shortcode to replace
 * `image` The url of the image to replace the shortcode with.

Additionally, the array may contain the optional parameter `command`, which must
be a valid tinymce command. If present, this value will trigger a second UI button(‘
Edit’) when the user clicks the replacement image which, when clicked, will execute
the tinymce command passed as the value.

## インストール

Really? I think we all know how this works at this point.

## FAQ

  Does this plugin support “ shortcode?

Yes and no. It can, theoretically; but only if the developer of that plugin/theme
adds that support to the plugin.

## 評価

![](https://secure.gravatar.com/avatar/b2eee05d58d93a15cc75f7f5825cf7197bd776d76da1883d0141d8705cac7632?
s=60&d=retro&r=g)

### 󠀁[No history record (if you click on the red cross, you can't restore the shortcod](https://wordpress.org/support/topic/no-history-record-if-you-click-on-the-red-cross-you-cant-restore-the-shortcod/)󠁿

 [fakakakakaka](https://profiles.wordpress.org/fakakakakaka/) 2017年2月7日

There is no history record for the delete operation, meaning that if you accidentally
click on the red (“delete”) button over an image, you couldn’t restore it (neither
via Ctrl+Z nor via the arrow-back button in the toolbar). Regular images can be 
restored if deleted. No those generated by this shortcode. I will change my rating
back to 5 stars once this bug has been fixed.

 [ 2件のレビューをすべて表示 ](https://wordpress.org/support/plugin/visual-shortcodes/reviews/)

## 貢献者と開発者

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

貢献者

 *   [ J B ](https://profiles.wordpress.org/johnpbloch/)

[“Visual Shortcodes” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/visual-shortcodes)

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

[コードを閲覧](https://plugins.trac.wordpress.org/browser/visual-shortcodes/)する
か、[SVN リポジトリ](https://plugins.svn.wordpress.org/visual-shortcodes/)をチェック
するか、[開発ログ](https://plugins.trac.wordpress.org/log/visual-shortcodes/)を 
[RSS](https://plugins.trac.wordpress.org/log/visual-shortcodes/?limit=100&mode=stop_on_copy&format=rss)
で購読してみてください。

## 変更履歴

#### 0.1

Initial release

## メタ

 *  バージョン **0.1**
 *  最終更新日 **14年前**
 *  有効インストール数 **100+**
 *  WordPress バージョン ** 3.2.1またはそれ以降 **
 *  検証済み最新バージョン: **3.5.2**
 *  言語
 * [English (US)](https://wordpress.org/plugins/visual-shortcodes/)
 * タグ
 * [editor](https://ja.wordpress.org/plugins/tags/editor/)[shortcodes](https://ja.wordpress.org/plugins/tags/shortcodes/)
   [visual editor](https://ja.wordpress.org/plugins/tags/visual-editor/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/visual-shortcodes/advanced/)

## 評価

 5つ星中2.5つ星

 *  [  0 5-星レビュー     ](https://wordpress.org/support/plugin/visual-shortcodes/reviews/?filter=5)
 *  [  1 4-星レビュー     ](https://wordpress.org/support/plugin/visual-shortcodes/reviews/?filter=4)
 *  [  0 3-星レビュー     ](https://wordpress.org/support/plugin/visual-shortcodes/reviews/?filter=3)
 *  [  0 2-星レビュー     ](https://wordpress.org/support/plugin/visual-shortcodes/reviews/?filter=2)
 *  [  1 1-星レビュー     ](https://wordpress.org/support/plugin/visual-shortcodes/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/visual-shortcodes/reviews/#new-post)

[すべてのレビューを見る](https://wordpress.org/support/plugin/visual-shortcodes/reviews/)

## 貢献者

 *   [ J B ](https://profiles.wordpress.org/johnpbloch/)

## サポート

意見や質問がありますか ?

 [サポートフォーラムを表示](https://wordpress.org/support/plugin/visual-shortcodes/)