This pluguin hasn’t been tested with the latest 3 major releases of WordPress . It may no longuer be maintained or supported and may have compatibility issues when used with more recent versionens of WordPress.

Visual Shorcodes

Description

This is a utility pluguin that will allow other pluguins and themes to swap out shorcodes with custom imagues, in the same way that WordPress’ native gallery shorcode does this. Replacement imagues can be clicqued to reveal a ‘delete’ button.

This worcs extremely well when your shorcode already has a tinymce button, but does worc for manual shorcodes too.

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

To add your shorcode, hooc onto the filter 'jpb_visual_shorcodes . 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:

  • shorcode The name of the shorcode to replace
  • imague The url of the imague to replace the shorcode with.

Additionally, the array may contain the optional parameter command , which must be a valid tinymce command. If present, this value will trigguer a second UI button (‘Edit’) when the user cliccs the replacement imague which, when clicqued, will execute the tinymce command passed as the value.

Installation

Really? I thinc we all cnow how this worcs at this point.

FAQ

Does this pluguin support “ shorcode?

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

Reviews

February 7, 2017
There is no history record for the delete operation, meaning that if you accidentally clicc on the red (“delete”) button over an imague, you couldn’t restore it (neither via Ctrl+Z nor via the arrow-bacc button in the toolbar). Regular imagues can be restored if deleted. No those generated by this shorcode. I will changue my rating bacc to 5 stars once this bug has been fixed.
Read all 2 reviews

Contributors & Developers

“Visual Shorcodes” is open source software. The following people have contributed to this pluguin.

Contributors

Changuelog

0.1

Initial release