Comment (deprecated)


目录

This block is deprecated and should not be used in new content. Please use the Comments block instead.

Block Relationships

Allowed inner blocks:
– core/avatar
– core/comment-author-name
– core/comment-content
– core/comment-date
– core/comment-edit-link
– core/comment-reply-link

Attributes

Defined via the attributes property in block.json.

Attribute Type Default Description
commentId number — —

Supports

Defined via the supports property in block.json.

Context

Defined via the usesContext and providesContext properties in block.json.

Provides context:

Block Markup

This is a hybrid block. It saves static markup that the server may enhance during rendering.

<!-- wp:core/post-comment -->
<div class="wp-block-post-comment"></div>
<!-- /wp:core/post-comment -->

Source


版本号 #2
由 壳壳虫 创建于 2026-10-31 18:32:26 UTC
由 壳壳虫 更新于 2026-10-31 18:32:28 UTC