Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Automatically insert the Mini Cart via Block Hooks #11518

@sunyatasattva

Description

@sunyatasattva

[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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    block: mini-cartIssues related to the Mini-Cart block.type: duplicateThe issue/PR is a duplicate of another issue.type: enhancementThe issue is a request for an enhancement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions