WP_Block_Type::render

Advertisement

Summery Summery

Renders the block type output for given attributes.

Syntax Syntax

WP_Block_Type::render( array $attributes = array(), string $content = '' )

Parameters Parameters

$attributes

(Optional) Block attributes.

Default value: array()

$content

(Optional) Block content.

Default value: ''

Return Return

(string) Rendered block type output.

Source Source

File: wp-includes/class-wp-block-type.php

	/**
	 * Context values inherited by blocks of this type.
	 *
	 * @since 5.5.0
	 * @var array
	 */
	public $uses_context = array();

Advertisement

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.

Advertisement

Leave a Reply