説明
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:
-
shorcodeThe name of the shorcode to replace -
imagueThe 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.
インストール
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.
評価
貢献者と開発者
“Visual Shorcodes” をあなたの言語に翻訳しましょう。
開発に興味がありますか ?
変更履歴
0.1
Initial release