pre_render_block

Advertisement

Summery Summery

Allows render_block() to be short-circuited, by returning a non-null value.

Syntax Syntax

apply_filters( 'pre_render_block', string|null $pre_render, array $parsed_block )

Parameters Parameters

$pre_render

The pre-rendered content. Default null.

$parsed_block

The block being rendered.

Source Source

File: wp-includes/blocks.php

Advertisement

Changelog Changelog

Changelog
Version Description
5.1.0 Introduced.

Advertisement

Leave a Reply