This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
Automatically insert the Mini Cart via Block Hooks #11518
Labels
block: mini-cart
Issues related to the Mini-Cart block.
type: duplicate
The issue/PR is a duplicate of another issue.
type: enhancement
The issue is a request for an enhancement.
[Block hooks] are a new feature coming in WordPress 6.4 which allow certain blocks to be inserted automatically by plugins in block themes (templates, template parts, etc.). This is an incredibly useful feature for the Mini Cart block, which is almost universally present on the header of most eCommerce sites.
#10649 implements a version of it but inserts it after every navigation block. We probably want to only insert it as the last child of the header.
The text was updated successfully, but these errors were encountered: