WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

render_block_core_post_featured_image() WP 1.0

Renders the core/post-featured-image block on the server.

Хуков нет.

Возвращает

Строку. Returns the featured image for the current post.

Использование

render_block_core_post_featured_image( $attributes, $content, $block );
$attributes(массив) (обязательный)
Block attributes.
$content(строка) (обязательный)
Block default content.
$block(WP_Block) (обязательный)
Block instance.

Код render_block_core_post_featured_image() WP 5.8.1

function render_block_core_post_featured_image( $attributes, $content, $block ) {
	if ( ! isset( $block->context['postId'] ) ) {
		return '';
	}
	$post_ID = $block->context['postId'];

	$featured_image = get_the_post_thumbnail( $post_ID );
	if ( ! $featured_image ) {
		return '';
	}

	if ( isset( $attributes['isLink'] ) && $attributes['isLink'] ) {
		$featured_image = sprintf( '<a href="%1s">%2s</a>', get_the_permalink( $post_ID ), $featured_image );
	}

	$wrapper_attributes = get_block_wrapper_attributes();

	return '<figure ' . $wrapper_attributes . '>' . $featured_image . '</figure>';
}