admin管理员组文章数量:1426855
I have implemented some plugins, that are all based on adding shortcodes. At the end, the plugin renders directly HTML code, including needed JavaScript.
I would like to add now the possibility to include that plugin usage as a customized block. So instead of writing [pgnv id=id1 theme=theme1 ...]...[/pgnv]
, I would like to add a block named pgnv
that allows the user to enter all necessary attributes into a form. This would be much easier to use, and I could provide some hints like default values, drop-downs for selections, ...
What is the right way to do that based on the following goals:
- I would like to bundle that to the plugin, so that a wordpress admint that install the plugin has the old way (html code) and new way to use it.
- I would like to invest as less as possible.
- If possible it should be implemented without the dependency to additional plugins.
本文标签: How to integrate plugins into block editor
版权声明:本文标题:How to integrate plugins into block editor 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745482496a2660238.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论