WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about render_block_context

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/blocks.php apply_filters 1047 /**
* Filters the default context provided to a rendered block.
*
* @since 5.5.0
* @since 5.9.0 The `$parent_block` parameter was added.
*
* @param array $context Default context.
* @param array $parsed_block Block being rendered, filtered by `render_block_data`.
* @param WP_Block|null $parent_block If this is a nested block, a reference to the parent block.
*/
wp-includes/class-wp-block.php apply_filters 240 /**
* Generates the render output for the block.
*
* @since 5.5.0
*
* @param array $options {
* Optional options object.
*
* @type bool $dynamic Defaults to 'true'. Optionally set to false to avoid using the block's render_callback.
* }
* @return string Rendered block output.
*/

Hook Parameters

Parameter Type Name Description
array $context Default context.
array $parsed_block Block being rendered, filtered by `render_block_data`.
WP_Block|null $parent_block If this is a nested block, a reference to the parent block.