mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-18 08:36:04 +01:00
17 lines
304 B
PHP
17 lines
304 B
PHP
|
<?php
|
||
|
/**
|
||
|
* Server-side rendering of the `core/query` block.
|
||
|
*
|
||
|
* @package WordPress
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
* Registers the `core/query` block on the server.
|
||
|
*/
|
||
|
function register_block_core_query() {
|
||
|
register_block_type_from_metadata(
|
||
|
__DIR__ . '/query'
|
||
|
);
|
||
|
}
|
||
|
add_action( 'init', 'register_block_core_query' );
|