Skip to content

Pass content to render callback #5760

Closed

Description

Issue Overview

The block content is no longer available in the render callback. It was removed here.

However, it would be very useful to have this data available. I have 2 use cases.

  • I have a partially dynamic block. I am saving my block as HTML in the post content. But I want a small part of this to be modified.
  • I have a container block with nested children. The block is rendered in PHP. I have no way to get the child block data.

There are alternative ways to achive these goals. I could have my dynamic block fully rendered in PHP. I could just allow my container block to store all the data in the post content. However this isn't very flexible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions