| 222 | // avoid the blocks with $block['blockName'] equal to null |
| 223 | if ( $block_name = $block['blockName'] ) { |
| 224 | /** |
| 225 | * Filters the content of a single block. |
| 226 | * |
| 227 | * The dynamic portion of the hook name, `$block['blockName']`, refers to |
| 228 | * the block name - namespace/block |
| 229 | * |
| 230 | * @param string $block_content The block content about to be appended. |
| 231 | * @param array $block The full block, including name and attributes. |
| 232 | */ |
| 233 | $block_content = apply_filters( "render_block_{$block_name}", $block_content, $block ); |
| 234 | } |
| 235 | |