admin管理员组文章数量:1287913
I'd like to use the block editor to manage content of the site-wide footer. With the classic editor, I simply need to register a plugin page and add a field that's just a wp_editor
instance. I recall seeing something somewhere mentioning support for running Gutenberg outside the context of a post, but I can't track down the actual instructions, and skimming over edit-form-blocks.php
doesn't make it clear what I need.
Update: My currently solution is to just use resusable blocks; I've exposed the manager to the admin menu, allowing users to create reusable blocks outside of a post. I then registered settings to allow assigning a reusable block to various template areas of the theme (like the Footer or, these days, the 404 Page content).
本文标签: Use gutenberg block editor on plugin page (outside of a post)
版权声明:本文标题:Use gutenberg block editor on plugin page (outside of a post) 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741332402a2372841.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论