WP_Block_Type::__construct

Advertisement

Summery Summery

Constructor.

Syntax Syntax

WP_Block_Type::__construct( string $block_type, array|string $args = array() )

Description Description

Will populate object properties from the provided arguments.

Parameters Parameters

$block_type

(Required) Block type name including namespace.

$args

(Optional) Array or string of arguments for registering a block type.

Default value: array()

Source Source

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

	/**
	 * Block type render callback.
	 *
	 * @since 5.0.0
	 * @var callable

Advertisement

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.

See also See also

Advertisement

Leave a Reply