register_block_core_comments_title

函数
register_block_core_comments_title ( No parameters )

register_block_core_comments_title: 这个函数用来为Gutenberg编辑器注册”评论标题”块。它显示评论区的标题。

在服务器上注册`core/comments-title`区块。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function register_block_core_comments_title() {
register_block_type_from_metadata(
__DIR__ . '/comments-title',
array(
'render_callback' => 'render_block_core_comments_title',
)
);
}
function register_block_core_comments_title() { register_block_type_from_metadata( __DIR__ . '/comments-title', array( 'render_callback' => 'render_block_core_comments_title', ) ); }
function register_block_core_comments_title() {
	register_block_type_from_metadata(
		__DIR__ . '/comments-title',
		array(
			'render_callback' => 'render_block_core_comments_title',
		)
	);
}

常见问题

FAQs
查看更多 >