Gutenberg 16.6 Introduces Block Hooks, Improvements to Toolbars on Nested Blocks – WP Tavern
Gutenberg 16.6 is accessible with progress on a function that was previously referred to as auto-inserting blocks however has now been renamed to dam hooks.
In a earlier launch (16.4), Gutenberg launched auto-inserting blocks as an experimental function that permits plugin builders to specify a location through which the block might be robotically inserted, comparable to earlier than or after a template. Customers can then reposition the blocks after insertion utilizing the editor instruments.
Gutenberg lead architect Matias Ventura proposed renaming the function to dam hooks to assist builders perceive how they work.
“I’ve seen anecdotal suggestions that autoInsert
will not be the clearest of descriptions,” Ventura stated. “I’d prefer to suggest renaming to the extra acquainted hooks
terminology—and ‘block hooks’ in additional normal phrases—to assist of us perceive the mechanics and function extra quickly.”
This launch additionally adds an inspector panel for block hooks, tentatively named “Plugins,” that shows blocks out there for auto-insertion. It consists of toggles to insert or take away them. The up to date model of the function additionally consists of block icons (not proven beneath) to assist differentiate the toggles.
Gutenberg 16.6 brings enhancements to toolbars on nested blocks, the place the toolbar now stays connected to the mother or father block. This transformation is a part of a broader effort to enhance nested block experiences. Beforehand, the toolbar would transfer round when clicking contained in the nested blocks, however this variation makes it keep in place for a much less chaotic modifying expertise. The up to date toolbar habits has been rolled out to Navigation, Record, and Quote blocks up to now.
This launch features a new keyboard shortcut for duplicating blocks throughout the Record View: (CMD+Shift+d
). It allows customers to do extra from the keyboard whereas navigating across the Record View, as an alternative of getting to leap again into the block settings menu or editor canvas. Customers can now click on twice on the chosen (or targeted) block or a number of blocks to shortly duplicate them multi function go.
These highlighted options and extra might be touchdown within the upcoming WordPress 6.4 launch. Try the Gutenberg 16.6 release post for the complete checklist of recent options, enhancements, bug fixes, and enhancements to efficiency and code high quality.