WPDev.one
Core Function
View Source on Trac ↗

render_block_core_post_template()

render_block_core_post_template( mixed $attributes, mixed $content, mixed $block )

Renders the `core/post-template` block on the server.

Parameters 3 required

Name / Type Description
$attributes
array

Block attributes.

Required
$content
string

Block default content.

Required
$block
WP_Block

Block instance.

Required

Return Value

(string)
Returns the output of the query, structured using the layout defined by the block's inner blocks.

Function Information

Since Version
6.3.0 Changed render_block_context priority to `1`.
Source File
wp-includes/blocks/post-template.php
Advertisement