Summery Summery
Returns a new block object for freeform HTML
Syntax Syntax
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
Version | Description |
---|---|
3.9.0 | Introduced. |