Skip to main content
wordpress supportwordpress support services

Gutenberg 16.6 Introduces Block Hooks, Improvements to Toolbars on Nested Blocks

Gutenberg 16.6 is available with progress on a feature that was formerly called auto-inserting blocks but has now been renamed to block hooks.

In a previous release (16.4), Gutenberg introduced auto-inserting blocks as an experimental feature that allows plugin developers to specify a location in which the block will be automatically inserted, such as before or after a template. Users can then reposition the blocks after insertion using the editor tools.

Gutenberg lead architect Matias Ventura proposed renaming the feature to block hooks to help developers understand how they work.

“I’ve seen anecdotal feedback that autoInsert is not the clearest of descriptions,” Ventura said. “I’d like to propose renaming to the more familiar hooks terminology—and ‘block hooks’ in more general terms—to help folks understand the mechanics and purpose more rapidly.”

This release also adds an inspector panel for block hooks, tentatively named “Plugins,” that displays blocks available for auto-insertion. It includes toggles to insert or remove them. The updated version of the feature also includes block icons (not shown below) to help differentiate the toggles.

image source: Gutenberg repository PR #52969

Gutenberg 16.6 brings improvements to toolbars on nested blocks, where the toolbar now stays attached to the parent block. This change is part of a broader effort to improve nested block experiences. Previously, the toolbar would move around when clicking inside the nested blocks, but this change makes it stay in place for a less chaotic editing experience. The updated toolbar behavior has been rolled out to Navigation, List, and Quote blocks so far.

video credit: Gutenberg GitHub repository PR #53699

This release includes a new keyboard shortcut for duplicating blocks within the List View: (CMD+Shift+d). It enables users to do more from the keyboard while navigating around the List View, instead of having to jump back into the block settings menu or editor canvas. Users can now click twice on the selected (or focused) block or multiple blocks to quickly duplicate them all in one go.

video credit: Gutenberg GitHub repository PR #53559

These highlighted features and more will be landing in the upcoming WordPress 6.4 release. Check out the Gutenberg 16.6 release post for the full list of new features, enhancements, bug fixes, and improvements to performance and code quality.