WordPress at a glance
function is not described

WP_Block_Parser::freeform() public WP 3.9.0

Returns a new block object for freeform HTML

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

No Hooks.

Return

WP_Block_Parser_Block. freeform block object.

Usage

$WP_Block_Parser = new WP_Block_Parser();
$WP_Block_Parser->freeform( $innerHTML );
$innerHTML(string) (required)
HTML content of block.

Changelog

Since 3.9.0 Introduced.

Code of WP_Block_Parser::freeform() WP 5.5.1

<?php
function freeform( $innerHTML ) {
	return new WP_Block_Parser_Block( null, $this->empty_attrs, array(), $innerHTML, array( $innerHTML ) );
}