HTTP/2 301
server: nginx
date: Fri, 26 Dec 2025 19:01:34 GMT
content-type: text/html; charset=UTF-8
x-olaf: ⛄
vary: accept, content-type
x-redirect-by: WordPress
location: https://developer.wordpress.org/reference/hooks/render_block_context/
x-frame-options: SAMEORIGIN
alt-svc: h3=":443"; ma=86400
x-nc: MISS ord 1
HTTP/2 200
server: nginx
date: Fri, 26 Dec 2025 19:01:35 GMT
content-type: text/html; charset=UTF-8
vary: Accept-Encoding
x-olaf: ⛄
vary: accept, content-type
link:
; rel="https://api.w.org/"
link:
; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
x-frame-options: SAMEORIGIN
content-encoding: gzip
alt-svc: h3=":443"; ma=86400
x-nc: MISS ord 1
render_block_context – Hook | Developer.WordPress.org
apply_filters( ‘render_block_context’, array $context, array $parsed_block, WP_Block|null $parent_block )
Filters the default context provided to a rendered block.
$contextarrayDefault context.
$parsed_blockarrayAn associative array of the block being rendered. See WP_Block_Parser_Block.
blockName stringName of block.
attrs arrayAttributes from block comment delimiters.
innerBlocks array[]List of inner blocks. An array of arrays that have the same structure as this one.
innerHTML stringHTML from inside block comment delimiters.
innerContent arrayList of string fragments and null markers where inner blocks were found.
$parent_blockWP_Block|nullIf this is a nested block, a reference to the parent block.
| Version | Description |
|---|
| 5.9.0 | The $parent_block parameter was added. |
| 5.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.