# gutenberg/12.6.0/build/block-library/blocks/query.php

Gutenberg, version 12.6.0. 17 lines.

- Page: https://pluginprobe.com/plugins/gutenberg/12.6.0/code/build/block-library/blocks/query.php
- Raw: https://pluginprobe.com/plugins/gutenberg/12.6.0/raw/build/block-library/blocks/query.php
- Modified: 2020-05-27T16:27:08+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/12.6.0/code/build/block-library/blocks/query.php#L10-L20`.

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

/**
 * Registers the `core/query` block on the server.
 */
function gutenberg_register_block_core_query() {
	register_block_type_from_metadata(
		__DIR__ . '/query'
	);
}
add_action( 'init', 'gutenberg_register_block_core_query', 20 );

```
