WordPress at a glance
function is not described

WP_Block_Type::render() public WP 5.0.0

Renders the block type output for given attributes.

{} It's a method of the class: WP_Block_Type{}

No Hooks.

Return

String. Rendered block type output.

Usage

$WP_Block_Type = new WP_Block_Type();
$WP_Block_Type->render( $attributes, $content );
$attributes(array)
Block attributes.
Default: empty array
$content(string)
Block content.
Default: empty string

Changelog

Since 5.0.0 Introduced.

Code of WP_Block_Type::render() WP 5.7.2

<?php
public function render( $attributes = array(), $content = '' ) {
	if ( ! $this->is_dynamic() ) {
		return '';
	}

	$attributes = $this->prepare_attributes_for_render( $attributes );

	return (string) call_user_func( $this->render_callback, $attributes, $content );
}