Questo plugin non è stato testato con le ultime 3 versioni principali (major releases) di WordPress. Potrebbe non essere più mantenuto, o supportato, e potrebbe presentare problemi di compatibilità se utilizzato con versioni più recenti di WordPress.

Visual Shortcodes

Descrizione

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.

Installazione

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.

Recensioni

7 Febbraio 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.
Leggi tutte le recensioni di 2

Contributi e sviluppo

“Visual Shortcodes” è un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.

Collaboratori

Traduci “Visual Shortcodes” nella tua lingua.

Ti interessa lo sviluppo?

Esplora il Codice segui il Repository SVN iscriviti al Log delle Modifiche. Puoi farlo tramite RSS con un lettore di feed.

Changelog (registro delle modifiche)

0.1

Initial release