WP_Block_Parser::freeform

Advertisement

Summery Summery

Returns a new block object for freeform HTML

Syntax Syntax

WP_Block_Parser::freeform( string $innerHTML )

Parameters Parameters

$innerHTML

(Required) HTML content of block.

Return Return

(WP_Block_Parser_Block) freeform block object.

Source Source

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

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

Advertisement

Changelog Changelog

Changelog
Version Description
3.9.0 Introduced.

Advertisement

Leave a Reply