WP_Block_Parser::freeform()
Returns a new block object for freeform HTML
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( $inner_html );
- $inner_html(string) (required)
- HTML content of block.
Changelog
Since 3.9.0 | Introduced. |
WP_Block_Parser::freeform() WP Block Parser::freeform code WP 6.7.1
public function freeform( $inner_html ) { return new WP_Block_Parser_Block( null, array(), array(), $inner_html, array( $inner_html ) ); }