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

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

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