register_block_core_comment_content

函数
register_block_core_comment_content ( No parameters )

register_block_core_comment_content: 这个函数注册了一个显示评论内容的块。它包括自定义显示评论内容的选项,例如是否显示”更多”链接。

在服务器上注册`core/comment-content`区块。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function register_block_core_comment_content() {
register_block_type_from_metadata(
__DIR__ . '/comment-content',
array(
'render_callback' => 'render_block_core_comment_content',
)
);
}
function register_block_core_comment_content() { register_block_type_from_metadata( __DIR__ . '/comment-content', array( 'render_callback' => 'render_block_core_comment_content', ) ); }
function register_block_core_comment_content() {
	register_block_type_from_metadata(
		__DIR__ . '/comment-content',
		array(
			'render_callback' => 'render_block_core_comment_content',
		)
	);
}

常见问题

FAQs
查看更多 >