Why? Remember we set that parameter to 5 when we disable Gutenberg, so by setting it to 10 or any value greater than 5, we easily override the disabling function and thereby enable Gutenberg. Tip: Notice the 10 value that these techniques are passing via the add_filter hooks. For the rest of June, the development team will work on the few issues and features that are identified to land in the first core version. However you choose to disable Gutenberg, you will need to do so in order for the following techniques to work properly. At WordCamp Europe, co-founder of WordPress and CEO of Automattic, Matt Mullenweg, laid out the Gutenberg roadmap for the next three months. Or, if you would rather disable Gutenberg and restore the Classic Editor using a plugin, check out Disable Gutenberg, which is super lightweight, flexible, and easy to customize exactly where Gutenberg should be disabled on your site. So choose either or both of these hooks (to support all versions of WP), and add to your theme’s functions.php. To do this, we can use either of the following filter hooks (depending on WP version): // WP = 5.0Īdd_filter('use_block_editor_for_post', '_return_false', 5) Otherwise, if you want to enable Gutenberg only on specific post IDs, post types, and so forth, you will need to first disable Gutenberg everywhere. So if you want to enable Gutenberg everywhere, you don’t need to do anything: it just works. It helps you build professional websites and helps with excellent website performance. With every update, Gutenberg brings more and improved features. In WordPress 5.0 and beyond, Gutenberg is enabled by default. It was introduced with WordPress 5.0 in November 2018, and it just kept getting better. My free plugin Disable Gutenberg now provides whitelist options to always use Block Editor on any post IDs, slugs, or titles :) First: Disable Gutenberg by default Update! To selectively enable Gutenberg only on certain posts, you can do it without touching any code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |