Skip to content

Pass the block name to the render callback #4671

@johnbillion

Description

@johnbillion

Issue Overview

The block name is not passed as a parameter to the render_callback callback function. This means it's not possible to use a generic callback which performs routing to render dynamic blocks (for example, a generic handler which routes block rendering to theme template parts).

Expected Behavior

The block name is passed as a parameter to the render_callback callback function.

Current Behavior

Just the block attributes and content are passed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] Block APIAPI that allows to express the block paradigm.[Type] EnhancementA suggestion for improvement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions