WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about pre_render_block

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/blocks.php apply_filters 1004 /**
* Allows render_block() to be short-circuited, by returning a non-null value.
*
* @since 5.1.0
* @since 5.9.0 The `$parent_block` parameter was added.
*
* @param string|null $pre_render The pre-rendered content. Default null.
* @param array $parsed_block The block being rendered.
* @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 229 /**
* 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
string|null $pre_render The pre-rendered content. Default null.
array $parsed_block The block being rendered.
WP_Block|null $parent_block If this is a nested block, a reference to the parent block.