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

(array) (Optional) Block attributes.

Default value: array()

$content

(string) (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

This site uses Akismet to reduce spam. Learn how your comment data is processed.