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

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 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://tw.wordpress.org/plugins/visual-shortcodes/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/visual-shortcodes/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/visual-shortcodes/#installation)
 * [開發資訊](https://tw.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.

## 常見問題集

  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/)，或透過 
[RSS](https://plugins.trac.wordpress.org/log/visual-shortcodes/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/visual-shortcodes/)。

## 變更記錄

#### 0.1

Initial release

## 中繼資料

 *  版本 **0.1**
 *  最後更新 **13 年前**
 *  啟用安裝數 **100+**
 *  WordPress 版本需求 ** 3.2.1 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.5.2**
 *  語言
 * [English (US)](https://wordpress.org/plugins/visual-shortcodes/)
 * 標籤:
 * [editor](https://tw.wordpress.org/plugins/tags/editor/)[shortcodes](https://tw.wordpress.org/plugins/tags/shortcodes/)
   [visual editor](https://tw.wordpress.org/plugins/tags/visual-editor/)
 *  [進階檢視](https://tw.wordpress.org/plugins/visual-shortcodes/advanced/)

## 評分

 2.5 星，滿分為 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/)