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)