apply_filters( 'render_block', string $block_content , array $block )
Filters the content of a single block.
Description Description
Parameters Parameters
- $block_content
-
(string) The block content about to be appended.
- $block
-
(array) The full block, including name and attributes.
Source Source
File: wp-includes/blocks.php
Changelog Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
To add a div wrapper outside of some blocks (like
core/paragraph
orcore/heading
), you can add filter torender_block
:Expand full source codeCollapse full source code