Title: Visual Shortcodes
Author: J B
Published: <strong>18 ສິງຫາ 2011</strong>
Last modified: 12 ມັງກອນ 2013

---

ຄົ້ນຫາປລັກອິນ

ປລັກອິນນີ້ **ຍັງບໍ່ທັນໄດ້ຮັບການທົດສອບກັບ 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://lo.wordpress.org/plugins/visual-shortcodes/#description)
 * [ການຣີວິວ](https://lo.wordpress.org/plugins/visual-shortcodes/#reviews)
 *  [ການຕິດຕັ້ງ](https://lo.wordpress.org/plugins/visual-shortcodes/#installation)
 * [ການພັດທະນາ](https://lo.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/) 7 ກຸມພາ 2017

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” ແມ່ນຊອຟແວໂອເພັນຊອດ (Open Source). ບຸກຄົນຕໍ່ໄປນີ້ໄດ້ມີສ່ວນຮ່ວມ
ໃນການພັດທະນາປລັກອິນນີ້.

ຜູ້ຮ່ວມພັດທະນາ

 *   [ 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

## ຂໍ້ມູນກຳກັບ (Meta)

 *  ເວີຊັນ **0.1**
 *  ອັບເດດຫຼ້າສຸດເມື່ອ **13 ປີ ທີ່ຜ່ານມາ** ທີ່ຜ່ານມາ
 *  ການຕິດຕັ້ງທີ່ໃຊ້ງານຢູ່ **100+**
 *  ເວີຊັນ WordPress ** 3.2.1 ຫຼື ສູງກວ່າ **
 *  ທົດສອບເຖິງເວີຊັນ **3.5.2**
 *  ພາສາ
 * [English (US)](https://wordpress.org/plugins/visual-shortcodes/)
 * ແທັກ
 * [editor](https://lo.wordpress.org/plugins/tags/editor/)[shortcodes](https://lo.wordpress.org/plugins/tags/shortcodes/)
   [visual editor](https://lo.wordpress.org/plugins/tags/visual-editor/)
 *  [ມຸມມອງຂັ້ນສູງ](https://lo.wordpress.org/plugins/visual-shortcodes/advanced/)

## ການໃຫ້ຄະແນນ

 2.5 ຈາກທັງໝົດ 5 ດາວ.

 *  [  ການວິຈານ 5 ດາວ ຈຳນວນ 0 ລາຍການ     ](https://wordpress.org/support/plugin/visual-shortcodes/reviews/?filter=5)
 *  [  ການວິຈານ 4 ດາວ ຈຳນວນ 1 ລາຍການ     ](https://wordpress.org/support/plugin/visual-shortcodes/reviews/?filter=4)
 *  [  ການວິຈານ 3 ດາວ ຈຳນວນ 0 ລາຍການ     ](https://wordpress.org/support/plugin/visual-shortcodes/reviews/?filter=3)
 *  [  ການວິຈານ 2 ດາວ ຈຳນວນ 0 ລາຍການ     ](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/)