[wp-trac] [WordPress Trac] #53596: Pass the block instance to the `render_block` filters
WordPress Trac
noreply at wordpress.org
Mon Jul 5 16:01:19 UTC 2021
#53596: Pass the block instance to the `render_block` filters
-------------------------+-------------------------
Reporter: johnbillion | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 5.9
Component: Formatting | Version: 5.5
Severity: normal | Keywords: needs-patch
Focuses: |
-------------------------+-------------------------
When using the `render_block` and `render_block_{$this->name}` filters I
wanted to access the `WP_Block` instance to access its properties,
specifically the `available_context` and `context` properties. These
aren't accessible within these filters because the `WP_Block` instance
isn't passed in.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53596>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list