WPDev.one
Core Function
View Source on Trac ↗

render_block_core_post_featured_image()

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

Renders the `core/post-featured-image` 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 featured image for the current post.

Function Information

Since Version
5.8.0
Source File
wp-includes/blocks/post-featured-image.php
Advertisement