parse_blocks()

 

File: wp-includes/blocks.php

function parse_blocks( $content ) {
	/**
	 * Filter to allow plugins to replace the server-side block parser
	 *
	 * @since 5.0.0
	 *
	 * @param string $parser_class Name of block parser class.
	 */
	$parser_class = apply_filters( 'block_parser_class', 'WP_Block_Parser' );

	$parser = new $parser_class();
	return $parser->parse( $content );
}

参数:parse_blocks( string $content )

Post content.

(数组)已分析块对象的数组。

$content

(string)
(Required)
Post content.

{acontent3}

You must log in before being able to contribute a note or feedback.

20.00% (2) 次Baidu访问
10.00% (1) 次Google访问
70.00% (7) 次Sogou访问
  • 蜘蛛:Baidu,2次,更新时间:2019-04-24 22:56:25
  • 蜘蛛:Google,1次,更新时间:2019-05-11 23:27:35
  • 蜘蛛:Sogou,7次,更新时间:2019-05-18 14:01:40

参与评论