# gutenberg/23.3.0/build/scripts/block-library/post-comment.php

Gutenberg, version 23.3.0. 18 lines.

- Page: https://pluginprobe.com/plugins/gutenberg/23.3.0/code/build/scripts/block-library/post-comment.php
- Raw: https://pluginprobe.com/plugins/gutenberg/23.3.0/raw/build/scripts/block-library/post-comment.php
- Modified: 2025-11-05T15:23:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/gutenberg/23.3.0/code/build/scripts/block-library/post-comment.php#L10-L20`.

```php
<?php
/**
 * Server-side rendering of the `core/post-comment` block.
 *
 * @package WordPress
 */

/**
 * Registers the `core/post-comment` block on the server.
 * We need to do this to make context available for inner blocks.
 */
function gutenberg_register_block_core_post_comment() {
	register_block_type_from_metadata(
		__DIR__ . '/post-comment'
	);
}
add_action( 'init', 'gutenberg_register_block_core_post_comment', 20 );

```
